-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreactotron-config.js
More file actions
20 lines (18 loc) · 876 Bytes
/
reactotron-config.js
File metadata and controls
20 lines (18 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import Reactotron from 'reactotron-react-native';
import ReactotronFlipper from 'reactotron-react-native/dist/flipper';
import AsyncStorage from '@react-native-community/async-storage';
// import {mst} from 'reactotron-mst';
// ignore some chatty `mobx-state-tree` actions
const RX = /postProcessSnapshot|@APPLY_SNAPSHOT/;
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: 'React Native Experiments',
createSocket: path => new ReactotronFlipper(path),
}) // controls connection & communication settings
.useReactNative() // add all built-in react native plugins
// .use(
// mst({
// filter: event => RX.test(event.name) === false,
// }),
// ) // connect to mst
.connect(); // let's connect!