Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native 修改app.json中的 name和displayName (ios版本测试) #2

Open
timi-black opened this issue Jun 21, 2019 · 0 comments

Comments

@timi-black
Copy link
Contributor

修改displayName(app安装后的名称)

这个比较简单,在app.json中修改后,还要在 .../ios/RNDemo1/Info.plist 中修改

<key>CFBundleDisplayName</key>
<string>RNDemo-显示名称</string>

然后运行react-native run-ios即可生效

修改name

这个改的有点多,可以直接删除掉iosandroid目录,然后运行:

react-native eject

再次生成 iosandroid目录,再运行react-native run-ios(这个过程有点久)

@timi-black timi-black changed the title [react-native]修改app.json中的 name和displayName (ios版本测试) react-native 修改app.json中的 name和displayName (ios版本测试) Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant