React Native Camera

React Native Camera

  • Docs
  • Guides
  • API
  • Help
  • For Enterprise
  • GitHub

›Guides

Getting Started

  • Installation
  • Contributing

Guides

  • Expo Usage
  • Gradle Upgrade Guide
  • Migrating from RCTCamera to RNCamera
  • Migrating from version 1.x to 2.x
  • Migrating from version 2.x/3.x to 4.x
  • React Navigation
  • Recipes
  • RNCamera
  • Testing

API

  • Work in progress

Help

  • Q & A

Enterprise

  • React-Native-Camera for Enterprise
Edit

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:

  • If you are using Expo
  • If you are using create-react-native-app
  • If you eject a create-react-native-app app and are using ExpoKit

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
Last updated on 1/14/2019 by Laurin Quast
← ContributingGradle Upgrade Guide →
  • How to migrate from Expo to react-native-camera
  • How to migrate from react-native-camera to Expo Camera Module
React Native Camera
Docs
Getting StartedGuidesAPI Reference
Community
User ShowcaseStack OverflowProject Chat
More
GitHubStars
Facebook Open Source
Copyright © 2021