Skip to content

Commit f08ab08

Browse files
authored
fix: expo app doesn't have index.js (#686)
### Summary Generated expo example apps were missing the `index.js` file. Fixes #682 ### Test plan 1. Create a JS library 2. Run the example app and make sure it displays correctly
1 parent 55eec1c commit f08ab08

File tree

2 files changed

+8
-1
lines changed
  • packages/create-react-native-library/templates/expo-library/example

2 files changed

+8
-1
lines changed

packages/create-react-native-library/templates/expo-library/example/App.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { registerRootComponent } from 'expo';
2+
3+
import App from './src/App';
4+
5+
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
6+
// It also ensures that whether you load the app in Expo Go or in a native build,
7+
// the environment is set up appropriately
8+
registerRootComponent(App);

0 commit comments

Comments
 (0)