-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add @ReactModule
annotation and NAME
constant
#745
Conversation
This will eventually be used by TurboModules annotation processor.
Seems fine - and thank you! - a couple questions:
|
There is some info about it here react-native-community/discussions-and-proposals#40. Basically this enables using TurboReactPackage more easily, it allows loading native modules lazily at the moment they are used in JS. The annotation class was added in September 2016 so it should be fine. |
Awesome thanks for both bits of info - I'm traveling so please be patient but I'll double check and likely merge and release, next opportunity. I appreciate the help! |
Thanks for your patience! Shaping up a v3 release with most of the backlog now |
@janicduplessis |
Hmm that’s strange, it should work fine. Maybe its a cache issue or something? I’ll try to run the sample from the repo to see if I get the issue too. |
Oh it runs fine - as in you can use it in a project that depends on react-native, but in this repo and react-native-localize at least, if you open |
@janicduplessis I hope you haven't spent much if any time looking yet - it helps to actually have a devDependency on react-native and include it in the build.gradle if you, you know, want Android Studio to have access to symbols you want to use 🤦♂️ 😅 All good now. |
Haha I forgot about this. Awesome!! |
Description
Add
@ReactModule
annotation andNAME
constant. This will eventually be used by TurboModules annotation processor.Compatibility
N/A
Checklist
README.md
CHANGELOG.md
deviceinfo.d.ts
,deviceinfo.js.flow
)default/index.js
)example/App.js
)