React-Native: Application has not been registered error

后端 未结 23 2169
無奈伤痛
無奈伤痛 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:13

    Rather than changing the name in AppRegistry ,

    Run react-native init Bananas , this will create react boilerplate code for Bananas project and AppRegistry.registerComponent will automatically point to bananas

    AppRegistry.registerComponent('Bananas', () => Bananas);
    

提交回复
热议问题