title: How to send images from react native to native modules?
body: <p><strong>Problem</strong></p>
  
  <p>I'm trying to send an array of images (saved locally on the javascript side on an assets folder) to the native side (both iOS and Android). There the native side process the images and returns a new image. This works because I've tried sending the image URL (using internet based images instead of local images) and the native code runs perfectly. </p>
  
  <p>The problem is that downloading each image is such a slow process, and I would send like 10 or 15 images. I think the best way to handle this is sending absolute paths of the images within the device.</p>
  
  <p><strong>What I've tried so far:</strong></p>
  
  <ul>
  <li>Sending URL of the images (Works but this is not what I'm looking for, the idea is to have the images saved on an "assets" folder instead of downloading one by one)</li>
  </ul>
  
  <p><strong>Ideas:</strong></p>
  
  <ul>
  <li><p>Maybe I can get an array of base64 strings of every image, but seems like a slow task to do; in the native side I will have to convert every base64 string into data and then into images.</p></li>
  <li><p>It will be ideal to send the absolute uri path of each asset, but I couldn't find a way to get it (only could get like './assets/myImage.png')</p></li>
  </ul>
  
  <p>According to React Native documentation (<a href="https://facebook.github.io/react-native/docs/native-modules-ios.html" rel="noreferrer">https://facebook.github.io/react-native/docs/native-modules-ios.html</a>) the native side supports the JSON standard formats (such as string, number, boolean, arrays and objects of any type of this list, and react callback/promises)</p>