-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
Hi There,
Thanks for your great work.
We have a bunch of legacy native code and want to have react-native get involved in the next version. As RN is not so feature complete to us, we'd like to experiment it as a component. Here are some thoughts about the future architecture based on our limited knowledge of RN, please comment.
- We'd like to create a minimal component in JS land and use it as RCTRootView at App start.
- As the App is native and RN hybrid, we'd like to reuse the *bridge created at first step, so it won't load JS files again.
- registerComponent for different kind of views in JS land, so we can have multiple entries for native code which manage the lifecycle of RN's RootView(s).
- Passing data back and forth between native code and RN. We experimented DeviceEventEmitter, but RN code runs in async mode, how can we guarantee the events send by native code will be listened in JS land? And we also tried AppParams.initialProps, but don't know how to get the value in JS land?
Thanks.
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.