Skip to content

Rename Project

Sanjeev yadav edited this page Apr 19, 2020 · 1 revision

To rename the project for name and package identifier, we will use react-native-rename package

1. Add react-native-rename package globally

With Yarn:

$ yarn global add react-native-rename

or With npm:

$ npm install react-native-rename -g

2. First, Switch to new branch (optional but recommended)

$ git checkout -b rename-app

3. Then, Rename your app

With custom Bundle Identifier

$ npx react-native-rename "Travel App" -b com.junedomingo.travelapp

Note: This package does not attempt to properly rename build artifacts such as ios/build or Cocoa Pod installation targets. After renaming your project you should clean, build, and reinstall third party dependencies to get it running properly with the new name.

Clone this wiki locally