Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Package name change from RCTCamera to RNCamera (master branch) #1212

Closed
jgfidelis opened this issue Feb 3, 2018 · 1 comment
Closed

Package name change from RCTCamera to RNCamera (master branch) #1212

jgfidelis opened this issue Feb 3, 2018 · 1 comment

Comments

@jgfidelis
Copy link
Collaborator

If you have any problem with this, try to follow these steps:

Package change

We are getting close to the 1.0 release and changed the package name's from RCTCamera to RNCamera, if you are using master branch, your app will not compile right away.

Steps to adapt:

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

  1. On the MainApplication of your Android project change the import of RCTCameraPackage line to:
import org.reactnative.camera.RNCameraPackage;
  1. Inside the getPackages() methods change new RCTCameraPackage() to new RNCameraPackage().
@sibelius
Copy link
Collaborator

RCTCamera is removed #1890

Migrate to latest version of RNCamera

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants