react-native-pictures
react-native-pictures copied to clipboard
Error 'Task' is only available in iOS 13.0 or newer
Just installed and getting this error
Hello @MariuzM ! So nice to see the library installed! What is the version of react-native you are running in your app?
"expo": "~49.0.21",
"react-native": "0.72.6",
Thanks for looking into this
This library uses functions that are only available in iOS 13 but your iOS app supports until iOS 12.4 (from RN 0.72).
From there you have various possibilities:
- upgrade to RN 0.73 (which supports only iOS13.4+)
- Change the iOS minimum version of your app to 13.0. It is fast to do and you will need to do it anyway when upgrading to 0.73
- Fork this library so that this code uses iOS 12.4 compatible functions.
Meanwhile I am going to edit the README to stipulate the minimum iOS version 👍
I have done the min version in the app, but i guess the RN 0.73 is still a must, Expo 50 is around the corner
[
'expo-build-properties',
{
ios: {
deploymentTarget: '15.0',
},
android: {
compileSdkVersion: 33,
targetSdkVersion: 33,
buildToolsVersion: '33.0.0',
},
},
],
Cool, nice to see it fixed on your side!
Uh? but its not :D
doing the deploymentTarget: '15.0', does not solve the issue, upgrading to expo 50 when that comes out will probably fix it.
Sorry, I thought you meant it worked with this change.
Actually I looked again in, and it looks like the minimum supported iOS version of expo is right now iOS 13.0 https://docs.expo.dev/faq/#what-versions-of-android-and-ios-are-supported-by-the-expo-sdk Which means that upgrading to sdk 50 won't change probably anything.
That's strange, to sum up it complains that the function is only available on iOS 13.0+ but your build is somehow not compatible with iOS 13.0+ only.
I have upgraded expo to "expo": "50.0.0-preview.7", and rn "react-native": "0.73.1", all working fine now
but because expo still in preview maybe leave this issue open so someone else find it and know its there
Oh perfect, thanks for trying and good to know. Let's do this yeah, I'll let this issue opened until expo SDK 50 is released 👍