react-native-camera/docs/expo_usage.md
Ronaldo Lima 54b03328b1 feat(docs): Add docusaurus (#2293)
* initial bootstrap on documentation

* Add EXPO_USAGE and MIgrating page

* add all pages

* add sponsors section to index

* theme

* configs

* clipboard button

* remove blog from docker

* start API.md

* minor updates
2019-06-02 16:20:35 -03:00

1.1 KiB

id title sidebar_label
expo_usage Expo Usage Expo Usage

RNCamera of react-native-camera is heavily based on Expo camera module. Thanks @aalices and Expo for the great work.

So you don't need to use react-native-camera if you have the following config:

How to migrate from Expo to react-native-camera

If you decide to eject without using ExpoKit, you can follow react-native-camera installation instructions and just change the usage of your Camera component to RNCamera:

- import { Camera } from 'expo';
+ import { RNCamera } from 'react-native-camera';

- <Camera
+ <RNCamera

How to migrate from react-native-camera to Expo Camera Module

- import { RNCamera } from 'react-native-camera';
+ import { Camera } from 'expo';

- <RNCamera
+ <Camera