use Image from React Native as image component
asp3 opened this issue · comments
Abhi Patel commented
I attempted to use an image component as the image, but it didnt seem to work. Does it specifically need to be a react-native-svg?
julien commented
would be great, interested in that too
julien commented
@abhip10 actually it possible,
just pass in an Image component to icon or image.
image: () => ( <Image style={{ height: 300, width: 300 }} source={constants.Images.Illus2} /> )
Mo Gorhom commented
as @julien9999 mentioned , prop image
and icon
both accepts a react node, so it could be an image, svg or a view