ecency-mobile/reactotron-config.ts

18 lines
684 B
TypeScript

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',
createSocket: path => new ReactotronFlipper(path)
})
.useReactNative() // add all built-in react native plugins
.use(reactotronRedux())
.connect(); // let's connect!
export default reactotron;