junedomingo / react-native-rename

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

React Native 0.73 MainApplication.kt and MainActivity.kt do not accept the rename #289

Closed hristo87 closed 10 months ago

hristo87 commented 11 months ago

Describe the bug After the recent update of React Native to version 0.73 and above, the MainApplication and MainActivity files, which were originally in Java, have been converted to Kotlin. Previously, the renaming of the project name inside these Java files worked as expected, but it seems to be encountering issues after the switch to Kotlin. Are there any plans to address this in future updates, or should we continue with manual updates?

To Reproduce Steps to reproduce the behavior:

  1. Create an ordinary React Native CLI 0.73.* project and use react-native-rename

Expected behavior Raname project name inside MainApplication and MainActivity files

Environment (please complete the following information):

Additional context SCR-20231219-lllk

younes-ammari commented 10 months ago

image

I had a similar issue

Environment : "react-native-rename": "^3.2.13", "react": "18.2.0", "react-native": "0.73.0", node version: 18.18.0