title: Excessive number of pending callbacks: 501. React Native - Expo Camera
body: <p><a href="https://i.stack.imgur.com/RawMw.jpg" rel="nofollow noreferrer">This warning appears to me when I capture several images by expo camera in a short time which is necessary for my project, how can I get rid of this warning as it prevents the camera from taking pictures after a while ... </a></p>
  <pre><code>const takePicture = async () =&gt; {
  if (cameraRef.current) {
    const options = {quality: 0.1, base64: true, skipProcessing: true};
    const data = await cameraRef.current.takePictureAsync(options);
    Camera.Constants.AutoFocus.on
    const source = data.uri;
    const actions = [{resize:{width : 320}}]
    const saveOptions = {compress:0.2,base64:true}
    const manipResult = await ImageManipulator.manipulateAsync(source,actions,saveOptions)
    if (source) {
      setIsPreview(true);  
      Send_Img(manipResult.base64);
      setInterval(() =&gt; {
      takePicture()},500);
    }
  }
  </code></pre>
  <p>};</p>