What is AppRegistry? Why is it required early in “require” sequence?

Technology CommunityCategory: React NativeWhat is AppRegistry? Why is it required early in “require” sequence?
VietMX Staff asked 3 years ago
  • AppRegistry is the JS entry point to running all React Native apps.
  • App root components should register themselves with AppRegistry.registerComponent, then the native system can load the bundle for the app and then actually run the app when it’s ready by invoking AppRegistry.runApplication.

AppRegistry should be required early in the require sequence to make sure the JS execution environment is setup before other modules are required.