Open anirudh-antino opened 1 year ago
I'm facing the same issue too, is there any fix to this?
as this package handles native modules, you need to rebuild Re-build the project, it'll solve the issue
Same problem here with version 5.3.1, a rebuild did not fix it. What else can be done?
Version 5.3.1 of react-native-image-picker uses TurboModules (TurboModuleRegistry). You need to upgrade React Native to 0.68.2 or downgrade react-native-image-picker to 4.0.0
@k-angama Thank you! Downgrading to version 4.0.6 fixed it for me.
Version 5.3.1 of react-native-image-picker uses TurboModules (TurboModuleRegistry). You need to upgrade React Native to 0.68.2 or downgrade react-native-image-picker to 4.0.0
thanks, it work for me
Is this just a typo? It says Picler instead of Picker.
Edit: it is a typo but it's just a variable name, so not the problem.
Version 5.0.2 works for me
Thanks @AxelCM, version 5.0.2 also works for me
A versão 5.3.1 do react-native-image-picker usa TurboModules (TurboModuleRegistry). Você precisa atualizar o React Native para 0.68.2 ou fazer downgrade do react-native-image-picker para 4.0.0
Thank you, it worked for me, I used 4.0.6, and for future people who have problems, my native React is 0.63
For android api level 33 new behavior
I need to upgrade 2 dependencies
Check if the api level version is 33 or grater, then request
else (is lower than 33)
Version 5.3.1 of react-native-image-picker uses TurboModules (TurboModuleRegistry). You need to upgrade React Native to 0.68.2 or downgrade react-native-image-picker to 4.0.0
Thanks that's work. Also I recommend to update to 4.9.0. There is no problem with building on Android https://github.com/react-native-image-picker/react-native-image-picker/pull/1955#issuecomment-1222338760
Updating react native to 0.68.2 didn't fix the issue.
"react-native": "0.68.2",
"react-native-image-picker": "7.0.1",
Seeing this on:
"react-native": "0.74.1",
"react-native-image-picker": "7.1.2",
Thanks @AxelCM, version 5.0.2 worked for me "react-native-image-picker": "5.0.2", "react-native": "0.63.5",
Thanks problem solve😍😍
"react-native": "0.64.0", "react-native-image-picker": "4.10.0",
Description
Explain the bug in as much detail as possible Simply install library using npm/yarn use
import {launchCamera, launchImageLibrary} from 'react-native-image-picker'
getting error on launchCamera();
[TypeError: null is not an object (evaluating 'nativeImagePicler.launchCamera')]
getting error on launchImageLibrary();
[TypeError: null is not an object (evaluating 'nativeImagePicler.launchImageLibrary')]
Additional Information