itinance / react-native-fs

Native filesystem access for react-native
MIT License
4.96k stars 983 forks source link

How to read images from imagestore? #675

Open compojoom opened 5 years ago

compojoom commented 5 years ago

there is this old issue here: https://github.com/itinance/react-native-fs/issues/33

Now that the official react-native docs for imageStore https://facebook.github.io/react-native/docs/imagestore tells us that we should use rn-fs I'm curious - how do you do the following with rn-fs?

ImageEditor.cropImage(
          rotatedUri,
          cropData,
          (croppedUri) => {
ImageStore.getBase64ForTag(
                croppedUri,
                (base64Image) => {
...
}
}

I tried with read file, but the path: rct-image-store://3 can't be read? Is there a trick to access the image store?

brenohq commented 5 years ago

same issue here

carmelocatalfamo commented 3 years ago

up