ecency-mobile/reactotron-config.ts

18 lines
858 B
TypeScript
Raw Normal View History

2022-10-17 11:11:23 +03:00
import AsyncStorage from '@react-native-async-storage/async-storage';
import Reactotron from 'reactotron-react-native';
import { reactotronRedux } from 'reactotron-redux';
2022-11-18 10:55:23 +03:00
import ReactotronFlipper from 'reactotron-react-native/dist/flipper';
2022-10-17 11:11:23 +03:00
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({
2022-10-17 11:11:23 +03:00
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())
2022-10-17 11:11:23 +03:00
.connect(); // let's connect!
2022-10-17 11:11:23 +03:00
export default reactotron;