react-native-renameRename react-native app with just one command

联合创作 · 2023-09-30 08:43

react-native-rename NPM version NPM monthly downloads NPM total downloads Paypal Donate

Rename react-native app with just one command

react-native-rename

This package assumes that you created your react-native project using react-native init.

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.

Usage

$ npx react-native-rename <newName>

With custom Bundle Identifier (Android only. For iOS, please use Xcode)

$ npx react-native-rename <newName> -b <bundleIdentifier>

Example

First, Switch to new branch (optional but recommended)
$ git checkout -b rename-app
Then, Rename your app
$ npx react-native-rename "Travel App"

With custom Bundle Identifier

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

Local installation

With Yarn:

$ yarn global add react-native-rename

With npm:

$ npm install react-native-rename -g

Support

浏览 6
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报