[英]Getting error: No default export of 'App.js' to render
I have the following Snack Expo
:我有以下
Snack Expo
:
https://snack.expo.io/r1_WoB744 https://snack.expo.io/r1_WoB744
which is a simplification of the official react-native-paper
Snack Expo
:这是官方
react-native-paper
Snack Expo
的简化:
https://snack.expo.io/@satya164/github.com-callstack-react-native-paper:example https://snack.expo.io/@satya164/github.com-callstack-react-native-paper:例子
On top of removing all the components except: { BottomNavigationExample, CardExample }
I did the following changes:除了删除所有组件之外:
{ BottomNavigationExample, CardExample }
我做了以下更改:
The I got the above Snack Expo
, here the link again:我得到了上面的
Snack Expo
,这里再次链接:
https://snack.expo.io/r1_WoB744 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.我不得不说 2 或 3 天前这个链接工作正常。
Any idea on how to solve this?关于如何解决这个问题的任何想法?
If possible, please provide back a working Snack Expo
.如果可能,请提供一个可用的
Snack Expo
。
Thanks!谢谢!
add following to App.js file将以下内容添加到 App.js 文件
export default App;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.