junedomingo / react-native-rename

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

Android MainActivity.java Rename Incorrect #237

Closed redreceipt closed 1 year ago

redreceipt commented 1 year ago

Describe the bug

It's not renaming MainActivity.java properly

To Reproduce Steps to reproduce the behavior:

  1. react-native-rename "NewName"

Expected behavior

The getComponentName function in MainActivity.java should return NewName, instead it returns the display name

Screenshots

Screenshot 2023-06-08 at 4 19 29 PM Screenshot 2023-06-08 at 4 19 21 PM

Environment (please complete the following information):

Additional context Add any other context about the problem here.