-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathReactotronConfig.js
43 lines (42 loc) · 1.11 KB
/
ReactotronConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import Reactotron from "reactotron-react-native";
import AsyncStorage from "@react-native-async-storage/async-storage";
import reactotronZustand from "reactotron-plugin-zustand";
import {
useAccountStore,
useAppStore,
useDataStore,
useDraftStore,
useSettingsStore,
} from "./src/state";
Reactotron.setAsyncStorageHandler(AsyncStorage) // AsyncStorage would either come from `react-native` or `@react-native-community/async-storage` depending on where you get it from
.configure({
name: "Memmy",
}) // controls connection & communication settings
.useReactNative() // add all built-in react native plugins
.use(
reactotronZustand({
stores: [
{
name: "settings",
zustand: useSettingsStore,
},
{
name: "drafts",
zustand: useDraftStore,
},
{
name: "app",
zustand: useAppStore,
},
{
name: "data",
zustand: useDataStore,
},
{
name: "account",
zustand: useAccountStore,
},
],
}),
)
.connect(); // let's connect!