Application is not Registered in react native

后端 未结 3 1656
轻奢々
轻奢々 2021-01-22 13:47

I have a react native application and I changed the package name of the application using https://www.npmjs.com/package/react-native-rename. After that I tried to run the projec

3条回答
  •  萌比男神i
    2021-01-22 14:21

    You need to check 2 files to make sure you have equal names there:

    1. index.js -> application name in the last line:

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

    1. app.json -> name property

    In both places names should be equal (case sensitive).

提交回复
热议问题