I'm working under React-Native and I'm looking for passing initial props to JS via Java. This can be done easily in Objective-C with initialProperties like this :
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"myapp"
initialProperties:initialProperties
launchOptions:launchOptions];
Where initialProperties is an NSDictionary
which will be converted in JSON and available in JS via this.props
.
So I'm looking to do the same in Android. Any help ? Thanks