Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

How to make PERMISSIONS.IOS.MEDIA_LIBRARY available in IOS simulator?

$
0
0

I develop apps with RN v0.61.5. I run in iOS simulator iPhone 11 (13.4.1). I working with device permission. I use react-native-permission v2.1.4 (here the repo). Based on their documentation, for check and request to media library in iOS, I have to use PERMISSIONS.IOS.MEDIA_LIBRARY. Also, this is what MEDIA_LIBRARY is based on apple developer doc. But, when I check with checkAPI like:

const result = await check(PERMISSIONS.IOS.MEDIA_LIBRARY)

it return unavailable. I haven't check this in real device since I do not have one. Is it only available in real device or is there any way to make it available in iOS simulator? So I can do testing with simulator only. Thanks.


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>