Package Exports
- react-native-flextool
- react-native-flextool/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-flextool) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-native-flextool
TOC
General Info
A React Native library for Flex (formally Flipboard FLEX) tool that is a must for iOS debugging. The original tool just support iOS, but this wrapper make at least don't fail either for Android or Web.
Forked from https://github.com/fjtrujy/react-native-flipboard-flex with support for FLEX 4.x.
Installation
Using npm:
npm install --save react-native-flextoolor using yarn:
yarn add react-native-flextoolUsage
var RNFlipboardFlex = import RNFlipboardFlex from 'react-native-flipboard-flex';API
| Method | Return Type | iOS | Android | Since |
|---|---|---|---|---|
| showExplorer() | void |
✅ | ✅ | 1.0.0 |
| hideExplorer() | void |
✅ | ✅ | 1.0.3 |
| toggleExplorer() | void |
✅ | ✅ | 1.0.3 |
showExplorer()
Show Flex explorer.
Examples
RNFlipboardFlex.showExplorer();
// iOS: Will Show the flex explorer
// Android: Will do nothinghideExplorer()
Hide Flex explorer.
Examples
RNFlipboardFlex.hideExplorer();
// iOS: Will hide the flex explorer
// Android: Will do nothingtoggleExplorer()
Will Show Flex explorer if it is hidden and will hide the exploer if it is shown.
Examples
RNFlipboardFlex.toggleExplorer();
// iOS: Will toggle the flex explorer
// Android: Will do nothingNotes
Please add the following line to your Podfile to exclude for Release builds.
pod 'FLEX', :configurations => ['Debug']The library recognizes DEBUG and BETA preprocessors to include FLEX.
See Flex github
Release Notes
See the CHANGELOG.md.
react-native-web
This library was made compatible with react-native-web by providing an empty polyfill in order to avoid breaking builds.