@supportworks/multi-imagepicker 8.0.5 → 8.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supportworks/multi-imagepicker",
3
- "version": "8.0.5",
3
+ "version": "8.0.6",
4
4
  "description": "Android and iOS customized multiple image picker. For react-native >= 0.60.",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -274,8 +274,8 @@ const MultiImagePicker = forwardRef((props, ref) => {
274
274
  case takePhotoIndex:
275
275
  console.log('User pressed take photo')
276
276
 
277
- // Use CameraModal on iOS, native camera on Android
278
- if (Platform.OS === 'ios') {
277
+ // Use CameraModal on iOS 26+, native camera on Android
278
+ if (Platform.OS === 'ios' && parseInt(Platform.Version,10) >= 26) {
279
279
  setPendingPickerIndex(index)
280
280
  setPendingCancelIndex(cancelIndex)
281
281
  setShowCameraModal(true)