mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0aee7330ff
Summary:
```
public String getMainComponentName() {
return mMainComponentName;
}
protected void onCreate(Bundle savedInstanceState) {
String mainComponentName = getMainComponentName();
mReactDelegate =
new ReactDelegate(
getPlainActivity(), getReactNativeHost(), mainComponentName, getLaunchOptions()) {
Override
protected ReactRootView createRootView() {
return ReactActivityDelegate.this.createRootView();
}
};
// mMainComponentName rename is mainComponentName
if (mainComponentName != null) {
loadApp(mainComponentName);
}
}
```
## Changelog
<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->
[CATEGORY] [TYPE] - Message
Pull Request resolved: https://github.com/facebook/react-native/pull/32685
Reviewed By: ShikaSD
Differential Revision: D32754475
Pulled By: cortinico
fbshipit-source-id: 46c395a5d6c6508c14eaa163a1e824f0c3cb8b80
Building React Native for Android
See the docs on the wiki.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.