forked from Memmy-App/memmy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ReactotronConfig.js
59 lines (58 loc) · 1.85 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import Reactotron from "reactotron-react-native";
import AsyncStorage from "@react-native-async-storage/async-storage";
import reactotronZustand from "reactotron-plugin-zustand";
import { usePostsStore } from "./src/stores/posts/postsStore";
import { useAccountStore } from "./src/stores/account/accountStore";
import { useCommunitiesStore } from "./src/stores/communities/communitiesStore";
import { useFeedsStore } from "./src/stores/feeds/feedsStore";
import { useInboxStore } from "./src/stores/inbox/inboxStore";
import { useSettingsStore } from "./src/stores/settings/settingsStore";
import { useSiteStore } from "./src/stores/site/siteStore";
import { useUpdatesStore } from "./src/stores/updates/updatesStore";
Reactotron.setAsyncStorageHandler(AsyncStorage) // AsyncStorage would either come from `react-native` or `@react-native-community/async-storage` depending on where you get it from
.configure() // controls connection & communication settings
.useReactNative() // add all built-in react native plugins
.use(
//add this line 🙌
reactotronZustand({
stores: [
{
name: "posts",
zustand: usePostsStore,
},
{
name: "account",
zustand: useAccountStore,
},
{
name: "communities",
zustand: useCommunitiesStore,
},
{
name: "feeds",
zustand: useFeedsStore,
},
{
name: "filters",
zustand: useFeedsStore,
},
{
name: "inbox",
zustand: useInboxStore,
},
{
name: "settings",
zustand: useSettingsStore,
},
{
name: "site",
zustand: useSiteStore,
},
{
name: "updates",
zustand: useUpdatesStore,
},
],
})
)
.connect(); // let's connect!