[🐛] illegal callback invocation from navite module when tap twice by photo on iOS
See original GitHub issueDescription
Hi there! Thank you for this awesome library, but I found a small issue.
When the user open gallery with photos by launchImageLibrary
method and tap twice by any photo, the red screen with error will appear.
The full error message is: illegal callback invocation from navite module. This callback type only permits a single invocation from native code.
I have a custom button, there is a code below:
const DEFAULT_OPTIONS = {
quality: 1,
cameraType: 'back',
mediaType: 'photo',
allowsEditing: false,
storageOptions: {
skipBackup: true,
path: 'images',
waitUntilSaved: true,
cameraRoll: false,
},
noData: true,
};
const someImagePickerCallback = async () => {
... some code here
};
<Button
onPress={() => {
ImagePicker.launchImageLibrary(DEFAULT_OPTIONS, someImagePickerCallback)
}}
/>
How to repeat issue and example
- Create a Button with onPress handler
- inside onPress should call
ImagePicker.launchImageLibrary
(like code above) - gallery with photos will appear
- tap twice to any photos inside this gallery
- see red screen with error, which I described above
Additional Information
- Image Picker version: ^2.3.1
- React Native version: ^0.63.3
- Platform: iOS
- Development Operating System: MacOS
- Dev tools: Xcode Version 12.2
If you need more info please let me know. Thank you!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:10
Top Results From Across the Web
[🐛] illegal callback invocation from navite ... - Bountysource
[🐛] illegal callback invocation from navite module when tap twice by photo on iOS. react-native-image-picker.
Read more >Getting "Illegal callback invocation from native module. This ...
There I got the call back error and needs to click the choose twice to see the cropped image. My intention does not...
Read more >Calling a callback multiple times in a React Native module
You wanted a callback to be invoked multiple times, but got this error instead "Illegal callback invocation from native module. This callback type...
Read more >Android Native Modules
In order to create a native module method with a callback, first import the Callback interface, and then add a new parameter to...
Read more >Duplicate and copy photos and videos on iPhone
Open a photo or video, then tap the More Options button . · Tap Duplicate. A duplicate copy appears next to the original...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Able to reproduce on the following:
React Native: v0.61.0 Image Picker: v3.1.3 iOS: v14.2
Any update here?