React-Native a set of in-app debugging and exploration tools for (iOS)
$ npm install react-native-flex-debugging --save
or
$ yarn add react-native-flex-debugging
$ react-native link react-native-flex-debugging
- cd to ios
- run
pod init(if only Podfile has not been generated in ios folder) - (if you are running RN below 0.61 ONLY) add
pod 'FLEX', '4.1.1'to pod file - run
pod install(you have to delete the app on the simulator/device and runreact-native run-iosagain)
import FlexDebugging from 'react-native-flex-debugging';
// Show Explorer
FlexDebugging.showExplorer();
// Hide Explorer
FlexDebugging.hideExplorer();
// Toggle Explorer
FlexDebugging.toggleExplorer();