简体   繁体   中英

How do I dynamically add permission keys and values to info.plist in a react native project?

Currently, permissions are manually added to info.plist, but I want them to be dynamically added.

In info.plist, I would like to add the following permissions:

    <key>NSCameraUsageDescription</key>
    <string>YOUR TEXT</string>

You cannot edit your Info.plist at runtime. It's shipped as part of your app's bundle, and your bundle is read-only. You must have your Info.plist configured how you want it to be at compile time

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM