AppRegistryについて気になったので調べてみる

AppRegistry · React Native

 

まず、React Nativeのプロジェクトを、Expoで作成した際のファイルの構成について理解しておく必要がありそうです。

エントリーポイントはどれでしょうか?

それは、node_modulesにあるexpoディレクトリ内にある、entryApp.js です。

 

 

 

さて、最上のリンク先から一部抜粋。

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; すべての React Native アプリを実行するための JS エントリ ポイントです。アプリのルート コンポーネントは、AppRegistry.registerComponentメソッドを使って自分自身を登録する必要があります。そうすると、ネイティブ システムはアプリのバンドルをロードし、準備ができたらAppRegistry.runApplicationメソッドを呼び出してアプリを実際に実行できます。

 

Expo (React Native) のエントリポイントになるファイル App.js を変更する #JavaScript - Qiita

 

Managed Workflowとは?