title: Hello, I am using image picker but when i upload the image first time it does't not upload after first time upload after error it works well
body: <pre><code>const immmggg=()=&gt;{
      Alert.alert(&quot;Done&quot;,&quot;Image uploaded &quot;,[{
        text:&quot;ok&quot;,
        onPress:()=&gt;dispatch(myImage(image))
      }])
      
    }
  
    const imagepick = () =&gt; {
      launchImageLibrary({}, (res) =&gt; {
   
        if(res.didCancel){
          alert(&quot;upload cancel&quot;)
        }else {
          setImage(res.assets[0].uri )
          immmggg()
          
          
        }
      })
    }
  </code></pre>
  <p>Data is coming in my console like this i am saving data in the array so that i can see my image uploads====&gt;</p>
  <pre><code>[{&quot;image&quot;: &quot;https://www.business2community.com/wp-content/uploads/2017/08/blank-profile-picture-973460_640.png&quot;}, {&quot;image&quot;: &quot;&quot;}, {&quot;image&quot;: &quot;file:///data/user/0/com.test/cache/rn_image_picker_lib_temp_a1a7b29a-2f6e-4678-bf64-2788ef9591eb.jpg&quot;}, {&quot;image&quot;: &quot;file:///data/user/0/com.test/cache/rn_image_picker_lib_temp_4ca22ddb-3e13-47ed-9d5d-91c708a2406e.jpg&quot;}, {&quot;image&quot;: &quot;&quot;}, {&quot;image&quot;: &quot;file:///data/user/0/com.test/cache/rn_image_picker_lib_temp_520242cb-9b10-4a35-99ca-f5f369ea3323.jpg&quot;}, {&quot;image&quot;: &quot;file:///data/user/0/com.test/cache/rn_image_picker_lib_temp_fa6a7908-7654-43ea-945f-04d72a2e3f40.jpg&quot;}, {&quot;image&quot;: &quot;&quot;}]
   
  </code></pre>
  <p>// some time it is uploading the image and some time it is showing the empty data..</p>