React-Native: Application has not been registered error

后端 未结 23 1939
無奈伤痛
無奈伤痛 2020-12-22 18:55

I am currently going through the React-Native tutorials. I began with the Getting Started tutorial, where I made a new react native project and successfully managed to run t

23条回答
  •  有刺的猬
    2020-12-22 19:02

    This solution worked for me after 2 days of debugging. Change this :

    AppRegistry.registerComponent('AppName', () => App);
    

    to

    AppRegistry.registerComponent('main', () => App);
    

提交回复
热议问题