title: Getting "Illegal callback invocation from native module. This callback type only permits a single invocation from native code"
body: <p>I am using react-native-image picker and react-native-image-crop picker libraries in two class.</p>
  
  <p>One is launching the library image (react-native-image picker) and other one package opens the cropping window(react-native-image-crop-picker).</p>
  
  <p>Here the launching library is in one screen and cropper is opening while navigating from the library on another screen.</p>
  
  <p>My issue is after click on the choose-in cropping window it again reset the cropping window and need to crop again and illegal invocation error occurs after this.</p>
  
  <p>Refer the code sniipet</p>
  
  <pre><code> // Opens the library image in Library.js screen
  import ImagePicker from 'react-native-image-picker';
       ImagePicker.launchImageLibrary(options, (response)  =&gt; {
              if (response.didCancel) {
                console.warn('User cancelled photo picker');
              }
              else if (response.error) {
                console.warn('ImagePicker Error: ', response.error);
              }
              else {
               this.props.navigation.navigate('CropWindow', { screenName: 'CropImage',uri: response.uri});
              }
  </code></pre>
  
  <p>The below is for the cropping window in CropWindow.js</p>
  
  <pre><code>import ImagePicker from 'react-native-image-crop-picker';
      ImagePicker.openCropper({
                  path: response,
                  width: deviceWidth,
                  height: deviceWidth*5/4
               }).then(image =&gt; {
                  this.props.navigation.navigate('ShowAllCroppedImage', {uri: response.uri, croppedImage: this.croppedImage.bind(this)});
                })
                .catch((err) =&gt; {
                  console.log("openCropper error = " + err)
                });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ZGTxi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZGTxi.png" alt="enter image description here"></a></p>