What is the best way to rename app (bare workflow)?

Please provide the following:

  1. SDK Version: expo@45.0.3
  2. Platforms(Android/iOS/web/all): Android and ios
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

you can rename your android app in string.xml, and you can edit your IOS app name in xcode under general tab in project folder

1 Like

And is there an easy way to change package name?

Maybe try this to see what changes in the native projects when you change the name in a managed app, but there might be quite a lot of changes:

$ npm create expo-app -- OldName
$ cd OldName
$ expo prebuild
$ git add .
$ git commit -m "Old name"
[Edit app.json to change OldName to NewName
$ expo prebuild --clean
$ git add .
$ git commit -m "New name"
# At this point Git will output a lot of stuff like "rename path/{OldName => NewName}/file.name (99%)"
# That means it renamed the file and there were also a few changes in the file.
# If it says 100% then it was just a rename
# Then show the Android changes as follows. You'll see the file/directory renames in the header of each part of the diff
$ git show  --  android
# Same for the iOS changes:
$ git show  --  ios

e.g.:

diff --git android/app/src/debug/java/com/example/OldName/ReactNativeFlipper.java android/app/src/debug/java/com/example/NewName/ReactNativeFlipper.java
similarity index 99%
rename from android/app/src/debug/java/com/example/OldName/ReactNativeFlipper.java
rename to android/app/src/debug/java/com/example/NewName/ReactNativeFlipper.java
index 22639b0..4c785dd 100644
--- android/app/src/debug/java/com/example/OldName/ReactNativeFlipper.java
+++ android/app/src/debug/java/com/example/NewName/ReactNativeFlipper.java
@@ -4,7 +4,7 @@
  * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
  * directory of this source tree.
  */
-package com.example.OldName;
+package com.example.NewName;
 
 import android.content.Context;
 import com.facebook.flipper.android.AndroidFlipperClient;