react-native-rename icon indicating copy to clipboard operation
react-native-rename copied to clipboard

package name not updating in custom java files

Open KylixMedusa opened this issue 1 year ago • 7 comments

Describe the bug package name is not updating in the custom java files

To Reproduce Steps to reproduce the behavior: rename with the latest version

Expected behavior Expected all files with current package name to be updated

Environment (please complete the following information):

  • operating system: macOS
  • npm version: 9.5.1
  • node version: 18.16.1
  • react-native-rename version: 3.2.13
  • react-native version: 0.71.12

KylixMedusa avatar Aug 21 '23 14:08 KylixMedusa

I am having the same issue where the imports of the custom java files are not renamed

donald-boosted avatar Oct 06 '23 17:10 donald-boosted

Also having this issue

owenadley avatar Oct 06 '23 17:10 owenadley

Has anyone found a solution to this, and how did they solve it

Davidon4 avatar Nov 03 '23 14:11 Davidon4

@Davidon4 We ended up manually creating the required Java files for each build flavor dir in android/src/

owenadley avatar Nov 03 '23 14:11 owenadley

But rebuilding it again, wouldn't it remove this update when there is an update or a new install with node module

Davidon4 avatar Nov 04 '23 20:11 Davidon4

I'm having the same issue with the imports in Kotlin files. Any chance it gets resolved?

Kotauror avatar Mar 28 '24 09:03 Kotauror

I create a PR with fix.

meanwhile, I publish this fix with name @franciscomorais/react-native-rename.

Link.

franciscomorais avatar Jul 03 '24 17:07 franciscomorais