gorhom / react-native-paper-onboarding

Paper Onboarding is a material design UI slider for `React Native`.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use Image from React Native as image component

asp3 opened this issue · comments

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?

would be great, interested in that too

@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} /> )

as @julien9999 mentioned , prop image and icon both accepts a react node, so it could be an image, svg or a view 👍