Skip to content

Commit

Permalink
fix: expo app doesn't have index.js (#686)
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
atlj authored Nov 15, 2024
1 parent 55eec1c commit f08ab08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { registerRootComponent } from 'expo';

import App from './src/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);

0 comments on commit f08ab08

Please sign in to comment.