From 8b2c4a38a461ff5ecc95972291bc711e2c5dec9a Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Apr 2023 01:47:57 +0800 Subject: --- examples/with-react-native-web/apps/native/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/with-react-native-web/apps/native/index.js (limited to 'examples/with-react-native-web/apps/native/index.js') diff --git a/examples/with-react-native-web/apps/native/index.js b/examples/with-react-native-web/apps/native/index.js new file mode 100644 index 0000000..828b356 --- /dev/null +++ b/examples/with-react-native-web/apps/native/index.js @@ -0,0 +1,8 @@ +import { registerRootComponent } from "expo"; + +import App from "./App"; + +// registerRootComponent calls AppRegistry.registerComponent('main', () => App); +// It also ensures that whether you load the app in Expo Go or in a native build, +// the environment is set up appropriately +registerRootComponent(App); -- cgit v1.2.3-70-g09d2