1.0.0 • Published 6 years ago
react-native-sandbox-checker v1.0.0
react-native-sandbox-checker
react-native-sandbox-checker is module for recognizing Sandbox environment at iOs platform only.
Getting started
$ npm install react-native-sandbox-checker --save
Mostly automatic installation
$ react-native link react-native-sandbox-checker
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-sandbox-checkerand addRNSandboxChecker.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNSandboxChecker.ato your project'sBuild Phases➜Link Binary With Libraries - Run your project (
Cmd+R)<
Usage
import { isSandbox } from 'react-native-sandbox-checker';
// ...
if (isSandbox()) {
// Do your business here
}1.0.0
6 years ago