natysoz / expo-images-picker

Multiple Asset Photos Videos selecting package for Expo SDK
MIT License
95 stars 35 forks source link

Cant get the Uri as a valid uri prop for an Image #35

Closed josemanuel151 closed 3 years ago

josemanuel151 commented 3 years ago

I try to render the picked images Uri but it are like invalid because displays nothing

natysoz commented 3 years ago

Can u share code for the component that render ?

josemanuel151 commented 3 years ago

I make this to get an array of only the uris: const onSuccess = (data: any) => {
console.log(data)
const filteredUri = data.filter(({ uri }) => uri).map(({ uri }) => uri); navigation.navigate('AddProductScreen', { filteredUri: filteredUri, }); }; And the I try to use them here: <FlatList ListEmptyComponent={Loading...} data={filteredUri} renderItem={(item) => (

        )}
      />
natysoz commented 3 years ago

if you send data[0].uri to the component it display the image ? if so you have issue with the filters your making

josemanuel151 commented 3 years ago

I think that is something bad with my component

josemanuel151 commented 3 years ago

I cant use assets-library uri on my image component, do you know how can I display it :(