junedomingo / react-native-rename

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

IOS ONlLY: Invariant Violation: "AppName" has not been registered. This can happen if #159

Closed vikas-chhabra closed 1 year ago

vikas-chhabra commented 2 years ago

In ios>appName>AppDelegate.mm

In RCTAppSetupDefaultRootView change old_app_name to new_app_name

npx react-native-rename "new_app_name" updated new_app_name everywhere except this one instance.

image
jspizziri commented 2 years ago

FYI, this is only an issue RN > 0.67. In RN 0.68, AppDelegate.m was moved to AppDelegate.mm.

jspizziri commented 2 years ago

Looks like there's a PR out to address this already https://github.com/junedomingo/react-native-rename/pull/157

shyamalVixplor commented 2 years ago

In ios>appName>AppDelegate.mm

In RCTAppSetupDefaultRootView change old_app_name to new_app_name

npx react-native-rename "new_app_name" updated new_app_name everywhere except this one instance.

image

You saved my day:)

baha-udin commented 2 years ago

https://github.com/junedomingo/react-native-rename/issues/159#issue-1251990267

thanks bro, works in 0.68.2 version

wanderlust252 commented 2 years ago

you saved my day. Thank you sir!

junedomingo commented 1 year ago

Closing, please check v3

muhammadashariabdillah24 commented 1 year ago

Just to add, if you have changed the name of the application but it still displays an error, my suggestion is also to change the name of the application in the app.json file

Screen Shot 2023-10-25 at 10 04 58