I am trying to load image from external sdcard after I take photo from camera in React native image component as following, but it is not rendering in android. I even check
DSquare is right, unless you're running IOS. In that case 'file://' doesn't work.
The second problem is that this the path /storage/emulated/0
does not exist on IOS either.
You can make your life easier by using react-native-fs
import RNFS from "react-native-fs";
...
renderPhoto() {
return
}
RNFS.PicturesDirectoryPath
translates to /storage/emulated/0/Pictures
on Android.
No more headaches, no more wondering what path is which on which device/platform.