gpt4 book ai didi

react-native - 如何在React Native中请求iOS存储权限?

转载 作者:行者123 更新时间:2023-12-05 00:46:55 25 4
gpt4 key购买 nike

我找到了一个名为react-native-permissions的程序包,该程序包提供了Android和iOS中的大多数权限。目前,它不支持iOS中的存储权限。如何在React Native中请求iOS存储权限?

最佳答案

您需要在plist中添加以下字段。

<key>NSPhotoLibraryAddUsageDescription</key>
<string>*your app name* would like to save photos from the app to your gallery</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>*your app name* would like to access your photo gallery for uploading images to the app</string>

关于react-native - 如何在React Native中请求iOS存储权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53082568/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com