question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛] illegal callback invocation from navite module when tap twice by photo on iOS

See original GitHub issue

Description

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

Снимок экрана 2020-12-13 в 8 08 19 AM

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:open
  • Created 3 years ago
  • Reactions:6
  • Comments:10

github_iconTop GitHub Comments

4reactions
z4gunncommented, Jan 14, 2021

Able to reproduce on the following:

React Native: v0.61.0 Image Picker: v3.1.3 iOS: v14.2

3reactions
SimajjiHanscommented, Apr 22, 2021

Any update here?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found