diff --git a/android/build.gradle b/android/build.gradle index 63654bd943f..782dc57aa19 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -19,7 +19,7 @@ buildscript { // https://medium.com/androiddevelopers/picking-your-compilesdkversion-minsdkversion-targetsdkversion-a098a0341ebd // What's the latest? Consult this list: // https://developer.android.com/studio/releases/platforms - compileSdkVersion = 31 + compileSdkVersion = 33 } repositories { google() diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 57d9e3fdbc2..206c145ec8d 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -310,7 +310,7 @@ PODS: - glog - react-native-cameraroll (5.0.4): - React-Core - - react-native-image-picker (4.8.4): + - react-native-image-picker (4.10.2): - React-Core - react-native-netinfo (6.0.0): - React-Core @@ -723,7 +723,7 @@ SPEC CHECKSUMS: React-jsinspector: eb202e43b3879aba9a14f3f65788aec85d4e1ea9 React-logger: 98f663b292a60967ebbc6d803ae96c1381183b6d react-native-cameraroll: 38b40d9033e4077b6c603f92f95c6d05fa7907df - react-native-image-picker: cffb727cf2f59bd5c0408e30b3dbe0b935f88835 + react-native-image-picker: bf34f3f516d139ed3e24c5f5a381a91819e349ea react-native-netinfo: e849fc21ca2f4128a5726c801a82fc6f4a6db50d react-native-photo-view: ea0ec91bf5991a6843e740b1f47ab355171c996c react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a diff --git a/package.json b/package.json index 75c83b68515..e4b7426abba 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "react-native-device-info": "^8.1.7", "react-native-document-picker": "^3.2.4", "react-native-gesture-handler": "^2.8.0", - "react-native-image-picker": "4.8.4", + "react-native-image-picker": "4.10.2", "react-native-photo-view": "alwx/react-native-photo-view#91b873c85", "react-native-reanimated": "^2.2.0 <2.3.0", "react-native-safe-area-context": "^4.3.1", diff --git a/types/react-native-image-picker/lib/typescript/index.js.flow b/types/react-native-image-picker/lib/typescript/index.js.flow index d55ee4d32b8..947b461c299 100644 --- a/types/react-native-image-picker/lib/typescript/index.js.flow +++ b/types/react-native-image-picker/lib/typescript/index.js.flow @@ -1,19 +1,14 @@ /* @flow * @generated by TsFlower */ -import { - type CameraOptions, - type ImageLibraryOptions, - type Callback, - type ImagePickerResponse, -} from './types'; - +import type { ImagePickerResponse as $tsflower_import_type$_$_2e__2f_types$ImagePickerResponse } from './types'; +import { type CameraOptions, type ImageLibraryOptions, type Callback } from './types'; export * from './types'; declare export function launchCamera( options: CameraOptions, callback?: Callback, -): Promise; +): Promise<$tsflower_import_type$_$_2e__2f_types$ImagePickerResponse>; declare export function launchImageLibrary( options: ImageLibraryOptions, callback?: Callback, -): Promise; +): Promise<$tsflower_import_type$_$_2e__2f_types$ImagePickerResponse>; diff --git a/types/react-native-image-picker/lib/typescript/platforms/native.js.flow b/types/react-native-image-picker/lib/typescript/platforms/native.js.flow new file mode 100644 index 00000000000..19f8fb854d9 --- /dev/null +++ b/types/react-native-image-picker/lib/typescript/platforms/native.js.flow @@ -0,0 +1,18 @@ +/* @flow + * @generated by TsFlower + */ +import { + type CameraOptions, + type ImageLibraryOptions, + type Callback, + type ImagePickerResponse, +} from '../types'; + +declare export function camera( + options: CameraOptions, + callback?: Callback, +): Promise; +declare export function imageLibrary( + options: ImageLibraryOptions, + callback?: Callback, +): Promise; diff --git a/types/react-native-image-picker/lib/typescript/platforms/web.js.flow b/types/react-native-image-picker/lib/typescript/platforms/web.js.flow new file mode 100644 index 00000000000..f5cc58447a5 --- /dev/null +++ b/types/react-native-image-picker/lib/typescript/platforms/web.js.flow @@ -0,0 +1,12 @@ +/* @flow + * @generated by TsFlower + */ +import { type ImageLibraryOptions, type Callback, type ImagePickerResponse } from '../types'; +declare export function camera( + options?: ImageLibraryOptions, + callback?: Callback, +): Promise; +declare export function imageLibrary( + options?: ImageLibraryOptions, + callback?: Callback, +): Promise; diff --git a/yarn.lock b/yarn.lock index 34d952633a9..f736d0e60cb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10222,10 +10222,10 @@ react-native-gradle-plugin@^0.0.6: resolved "https://registry.yarnpkg.com/react-native-gradle-plugin/-/react-native-gradle-plugin-0.0.6.tgz#b61a9234ad2f61430937911003cddd7e15c72b45" integrity sha512-eIlgtsmDp1jLC24dRn43hB3kEcZVqx6DUQbR0N1ABXGnMEafm9I3V3dUUeD1vh+Dy5WqijSoEwLNUPLgu5zDMg== -react-native-image-picker@4.8.4: - version "4.8.4" - resolved "https://registry.yarnpkg.com/react-native-image-picker/-/react-native-image-picker-4.8.4.tgz#ac52f1e265458e944664adf1dcd0a9ee408fe083" - integrity sha512-Mjh2j/sddyolb16EpmprWzbtyeFvW8Xgzr/8WNi9d6bR2FC/kL78cY/a+7Yzujg5ZDtT1MWys+eWw/qtfwgGiw== +react-native-image-picker@4.10.2: + version "4.10.2" + resolved "https://registry.yarnpkg.com/react-native-image-picker/-/react-native-image-picker-4.10.2.tgz#75b356c9eea70c2c4f5c1089f8758e2fa32f88a8" + integrity sha512-3h9PrA1dQ84rVeipzQE4eWTELvflSHNtJZN6rz7NkZyaxo9YZV8H/TswBpHwiS5YWlyu+zlLzSoWVa1opSu7GA== react-native-iphone-x-helper@^1.3.0: version "1.3.1"