Skip to content

Instantly share code, notes, and snippets.

@smakosh
Created June 11, 2020 11:55
Show Gist options
  • Save smakosh/ffd9c9b755c15e6ce8dc12ac0dc49ca8 to your computer and use it in GitHub Desktop.
Save smakosh/ffd9c9b755c15e6ce8dc12ac0dc49ca8 to your computer and use it in GitHub Desktop.
Change package name on a React Native app
  1. Changed project' subfolder name from: "android/app/src/main/java/<com.old_id>/" to: "android/app/src/main/java/com.new_id/"
  2. In android/app/src/main/java/MY/APP/com.new_id/MainActivity.java:, change:
package com.new_id;
  1. In android/app/src/main/AndroidManifest.xml, change:
package="com.new_id"
  1. In android/app/build.gradle, change:
applicationId "com.new_id"
  1. In android/app/BUCK, change:
android_build_config(
  package="com.new_id"
)
android_resource(
  package="com.new_id"
)
  1. In android/app/src/main/res/values/strings.xml, change app_name to com.new_id
  2. Run ./gradlew clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment