1.0.0 • Published 4 years ago

react-native-sandbox-checker v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-sandbox-checker and add RNSandboxChecker.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNSandboxChecker.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import { isSandbox } from 'react-native-sandbox-checker';

// ...

if (isSandbox()) {
    // Do your business here
}