Closed evanstern closed 1 year ago
I am facing the same type error
Some infos: operating system: Arch Linux npm version: 8.15.0 node version: v16.17.1 react-native-rename version: 3.2.7 react-native version: 0.71.0
I also encountered the same error as the one described in the issue. I found the cause of the error by looking at the source:
var currentBundleID = $data('manifest').attr('package');
It appears that the app is looking for the 'package' attribute in the manifest file. So, I opened android/app/src/main/AndroidManifest.xml
and saw that it was not defined.
💡 Solution:
I just had to define package
attr. with the current/old package name and then run the script
My manifest file's first 3 lines look like this after update:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.oldappname"
>
Fixed in v3.2.8, cheers!
Describe the bug Running
npx react-native-rename "New Name"
results in an error after theios/XXX/Info.plist
reports itself as UPDATED.The error is
To Reproduce Steps to reproduce the behavior:
npx react-native init
npx react-native-rename "New Name"
Expected behavior It should not throw an error
Environment (please complete the following information):