gorhom / react-native-paper-onboarding

Paper Onboarding is a material design UI slider for `React Native`.
MIT License
856 stars 51 forks source link

use Image from React Native as image component #12

Closed asp3 closed 4 years ago

asp3 commented 4 years ago

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?

julien9999 commented 4 years ago

would be great, interested in that too

julien9999 commented 4 years ago

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

gorhom commented 4 years ago

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