https://github.com/tradle/react-native-tradle-keeper
https://github.com/tradle/react-native-tradle-keeper
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tradle/react-native-tradle-keeper
- Owner: tradle
- Created: 2018-11-15T01:47:08.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T01:48:17.000Z (over 7 years ago)
- Last Synced: 2025-03-06T15:18:37.293Z (over 1 year ago)
- Language: Objective-C
- Size: 87.9 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-tradle-keeper
## Getting started
`$ npm install react-native-tradle-keeper --save`
### Mostly automatic installation
`$ react-native link react-native-tradle-keeper`
### 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-tradle-keeper` and add `RNTradleKeeper.xcodeproj`
3. In XCode, in the project navigator, select your project. Add `libRNTradleKeeper.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`
4. Run your project (`Cmd+R`)<
#### Android
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
- Add `import io.tradle.keeper.RNTradleKeeperPackage;` to the imports at the top of the file
- Add `new RNTradleKeeperPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
```
include ':react-native-tradle-keeper'
project(':react-native-tradle-keeper').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-tradle-keeper/android')
```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```
compile project(':react-native-tradle-keeper')
```
## Usage
See [./example.js](./example.js)