Change package name for Android in React Native

后端 未结 20 1840
鱼传尺愫
鱼传尺愫 2020-11-30 16:13

I used react-native init MyApp to initialise a new React Native app. This created among others an Android project with the package com.myapp.

20条回答
  •  日久生厌
    2020-11-30 17:03

    Go to file android/app/src/main/AndroidManifest.xml -

    Update :

    attr android:label of Element application as :

    Old value - android:label="@string/app_name"

    New Value - android:label="(string you want to put)"

    and

    attr android:label of Element activity as :

    Old value - android:label="@string/app_name"

    New Value - android:label="(string you want to put)"

    Worked for me, hopefully it will help.

提交回复
热议问题