More docs about migrating

This commit is contained in:
Joao Fidelis 2018-02-02 18:06:14 -02:00
parent 4146865bb6
commit 2bb5ac2e69
2 changed files with 16 additions and 4 deletions

View File

@ -83,9 +83,9 @@ pod 'react-native-camera', path: '../node_modules/react-native-camera'
#### iOS
1. `npm install react-native-camera --save`
2. In XCode, in the project navigator, right click `Libraries``Add Files to [your project's name]`
3. Go to `node_modules``react-native-camera` and add `RCTCamera.xcodeproj`
4. In XCode, in the project navigator, select your project. Add `libRCTCamera.a` to your project's `Build Phases``Link Binary With Libraries`
5. Click `RCTCamera.xcodeproj` in the project navigator and go the `Build Settings` tab. Make sure 'All' is toggled on (instead of 'Basic'). In the `Search Paths` section, look for `Header Search Paths` and make sure it contains both `$(SRCROOT)/../../react-native/React` and `$(SRCROOT)/../../../React` - mark both as `recursive`.
3. Go to `node_modules``react-native-camera` and add `RNCamera.xcodeproj`
4. In XCode, in the project navigator, select your project. Add `libRNCamera.a` to your project's `Build Phases``Link Binary With Libraries`
5. Click `RNCamera.xcodeproj` in the project navigator and go the `Build Settings` tab. Make sure 'All' is toggled on (instead of 'Basic'). In the `Search Paths` section, look for `Header Search Paths` and make sure it contains both `$(SRCROOT)/../../react-native/React` and `$(SRCROOT)/../../../React` - mark both as `recursive`.
### Face Detection Steps

View File

@ -1,9 +1,21 @@
# Migrating from RCTCamera to RNCamera
## Compiling
## Project Integration
Please follow the [RNCamera doc](https://github.com/react-native-community/react-native-camera/blob/master/docs/RNCamera.md) instalation guide to install the face detection frameworks on both platforms.
### iOS
Open your app's XCode project. Expand the Libraries folder in the project navigation and right click and delete the RCTCamera.xcodeproj.
On your project's target, on `Build Phases`, click on libRCTCamera.a and delete (press the - button below).
You can follow the instalation steps for RNCamera on the readme to link the new RNCamera project to your app's XCode project.
You can do it via `react-native link` command or by the manual steps.
Before building and running again, do a complete clean on your project.
### Android