0
votes

okay. react-native question regarding images and camera pictures.

I have RNCamera setting a redux state object with the picture object that returns like so:

{
"base64": //valid base64 
"deviceOrientation": 1, 
"height": 480, 
"pictureOrientation": 1,
 "uri": //valid uri 
"width": 640}

and in my window I have 3 buttons that link to the camera (and change the logic flow of where things are attached to the redux store)

const img = useSelector(getPicture(props.pictureType)) //just pulls a single image object like above

return(
 <Image style={styles.image} source={img}/>
)

I thought I would be able to just pop it in, but nothing is showing up, and I am not receiving any errors. So I'm likely missing some detail.

I've tried

 <Image style={styles.image} source={{uri:img.uri}}/>
 <Image style={styles.image} source={{uri:img}}/>
 <Image style={styles.image} source={img.uri}/>

as well with no effect...