junedomingo / react-native-rename

Rename react-native app with just one command
MIT License
2.63k stars 261 forks source link

Invariant Violation: "AppName" has not been registered. This can happen if: #158

Closed kabundege closed 1 year ago

kabundege commented 2 years ago

Description?

After running npx react-native-rename "old_app_name" -b com.packagename, everthing is updated but one line in the MainActivity. see the screenshot below

Screenshot

Screen Shot 2022-05-29 at 08 37 15

Fix (Work-around)

update that string value old_app_name to the new desired app name, used above com.packagename

junedomingo commented 1 year ago

Closing, please check v3

vivkikkk commented 1 year ago

Check the App name in MainActivity at getMainComponentName function, app.json, and package.json it will same in these 3 places.