https://github.com/milankyncl/react-native-sandbox-checker
React Native Sandbox check
https://github.com/milankyncl/react-native-sandbox-checker
ios ios-only react-native sandbox sandbox-environment
Last synced: about 2 months ago
JSON representation
React Native Sandbox check
- Host: GitHub
- URL: https://github.com/milankyncl/react-native-sandbox-checker
- Owner: milankyncl
- Created: 2020-06-10T13:35:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T13:46:15.000Z (almost 5 years ago)
- Last Synced: 2024-04-26T12:43:36.033Z (about 1 year ago)
- Topics: ios, ios-only, react-native, sandbox, sandbox-environment
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 `Libraries` ➜ `Add Files to [your project's name]`
2. Go to `node_modules` ➜ `react-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 Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<## Usage
```javascript
import { isSandbox } from 'react-native-sandbox-checker';// ...
if (isSandbox()) {
// Do your business here
}
```