Skip to content

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

Open
@timi-black

Description

@timi-black

修改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(这个过程有点久)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions