Sathya
Sathya

Reputation: 1734

How to use expo kit in react native init?

I have used create react native app tool to create initial setup of the my app. With CRNA i used Expokit also. After ejecting CRNA into react-native init setup i couldn't use expo camera features. I'm getting below error while launching app in simulator ("undefined is not an object(evaluating 'ExponentConstants.linkingUri)"). How resolve and use expokit after the eject the application?

Upvotes: 2

Views: 2933

Answers (3)

Aung Myat Hein
Aung Myat Hein

Reputation: 4188

Now you can use react-native-unimodules

If you create a React Native project through react-native init or with another tool like ignite-cli, then you’ll need to add the react-native-unimodules package to your project and configure it first: follow the instructions in the README.

See detail at expo blog.

Upvotes: 1

Julian Corrêa
Julian Corrêa

Reputation: 668

It's not possible yet, according with this answer in the Expo Forumn: https://forums.expo.io/t/react-native-init-expo-sdk/1903/2

Upvotes: 0

ide
ide

Reputation: 20788

After you eject from create-react-native-app you need to use Git or another version control tool to go back. You can create a new project with create-react-native-app, copy over your JS code, make sure it works, and then eject and this time choose the ExpoKit choice.

Upvotes: 0

Related Questions