Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : Compatibility with projects created with create-react-native-app #39

Open
kktam opened this issue Oct 31, 2017 · 2 comments
Open

Comments

@kktam
Copy link

kktam commented Oct 31, 2017

This is not a bug, but more of a question.

For projects that are created with React Native's create-react-native-app command. I would like to find out how to use this library on top of a project that is created using RN's native generator.

@jarretmoses
Copy link
Collaborator

@kktam I think I understand what you're asking but let me clarify. Do you want to know how to use this package when initializing an app with CRNA? It seems you may be talking about 2 different things as in my mind an app "created using RN's native generator" is not using CRNA but react-native init. If you created through the latter you should simply just need to install the dependency and run react-native new-module If you created CRNA I believe it defaults to using EXPO which I don't use too often, but I believe you would need to eject before using any 3rd party packages.

@yli18
Copy link

yli18 commented Aug 28, 2018

I tried with ejected CRNA, there are warnings

One possible solution is to create a new package perhaps with react-native init project then publish and install it from npm.

Anyone has a better solution?


Oh, it is actually an "UnhandledPromiseRejectionWarning" instead of expection
(node:76326) UnhandledPromiseRejectionWarning: Error: Invalid argument not valid semver

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

No branches or pull requests

3 participants