-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreactotron-config.ts
22 lines (19 loc) · 947 Bytes
/
reactotron-config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import AsyncStorage from '@react-native-async-storage/async-storage';
import Reactotron from 'reactotron-react-native';
import { reactotronRedux } from 'reactotron-redux';
import ReactotronFlipper from 'reactotron-react-native/dist/flipper';
const reactotron = 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: 'Ecency',
// For flipper reactotron client connecting with app issue check this
// https://github.com/infinitered/flipper-plugin-reactotron/issues/63#issuecomment-1318354958
createSocket: (path) => new ReactotronFlipper(path),
})
.useReactNative() // add all built-in react native plugins
.use(reactotronRedux())
.connect(); // let's connect!
export default reactotron;
export const log = (...rest) => {
Reactotron.log(...rest);
console.log(...rest);
};