Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

react native rename package name

npx react-native-rename "Travel App" -b com.packagename
Comment

how to change package name in react native

I have changed project subfolder name from:
"android/app/src/main/java/MY/APP/OLD_ID/"
to: "android/app/src/main/java/MY/APP/NEW_ID/"

Then manually switched the old and new package ids:

In: android/app/src/main/java/MY/APP/NEW_ID/MainActivity.java:

package MY.APP.NEW_ID;
In android/app/src/main/java/MY/APP/NEW_ID/MainApplication.java:

package MY.APP.NEW_ID;
In android/app/src/main/AndroidManifest.xml:

package="MY.APP.NEW_ID"
And in android/app/build.gradle:

applicationId "MY.APP.NEW_ID"
(Optional) In android/app/BUCK:

android_build_config(
  package="MY.APP.NEW_ID"
)
android_resource(
  package="MY.APP.NEW_ID"
)
Gradle' cleaning in the end (in /android folder):

./gradlew clean
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript get index of object in array 
Javascript :: js wait 5 second 
Javascript :: jquery ajax google api 
Javascript :: javascript get int val 
Javascript :: remove all chars from string and leave only numbers javascript 
Javascript :: speed facebook video 
Javascript :: curl accept json 
Javascript :: toggle jquery remove others 
Javascript :: js check if number is divisible by 2 
Javascript :: js map over object 
Javascript :: javascript find diff in nested objects node js 
Javascript :: SETTING ADOBE ANALYTICS DEBUGGER 
Javascript :: odoo popup input not taking keyboard value 
Javascript :: get api call in jquery 
Javascript :: how to check if element is in viewport 
Javascript :: js escape ampersand 
Javascript :: eslint ignore current line 
Javascript :: javascript cookies 
Javascript :: node get unix timestamp 
Javascript :: easyui datagrid double click cell 
Javascript :: jquery remove closest 
Javascript :: javascript get random array item 
Javascript :: javascript sort by id 
Javascript :: regex to check if string contains special characters javascript 
Javascript :: At line:1 char:1 + nodemon server.js 
Javascript :: how to send an embed message discord.js 
Javascript :: delete elment javascript after fade out 
Javascript :: javascript check if string ends with 
Javascript :: jquery hover 
Javascript :: angular 9 how to get previous state 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =