Question : Compatibility with projects created with create-react-native-app
kktam opened this issue · 2 comments
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.
@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.
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