'Getting error: No default export of 'App.js' to render

I have the following Snack Expo:

https://snack.expo.io/r1_WoB744

which is a simplification of the official react-native-paper Snack Expo:

https://snack.expo.io/@satya164/github.com-callstack-react-native-paper:example

On top of removing all the components except: { BottomNavigationExample, CardExample } I did the following changes:

screenshot

The I got the above Snack Expo, here the link again:

https://snack.expo.io/r1_WoB744

My problem is that when running the app on the online simulator I'm getting the error:

Device: (13:5485) No default export of 'App.js' to render!

I have to say that 2 or 3 days ago this link worked properly.

Any idea on how to solve this?

If possible, please provide back a working Snack Expo.

Thanks!



Solution 1:[1]

add following to App.js file

export default App;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Leonardo Alves Machado