Open mbuenaventurac opened 3 years ago
I have the same issue
you can use conditional rendering for this by using pageIndexCallback prop:
in my case , I had two boarding screens with different background images
...
const [index, setindex] = useState
return ( <ImageBackground source={index===0? require('assets/img1') : require('assets/img2')} <Onboarding pageIndexCallback={changePageHandler} ...
hope this helps!
how do we bypass the background color when adding the ImageBackground component ?
how do we bypass the background color when adding the ImageBackground component ?
You can use a rgba background color with transparency: backgroundColor: 'rgba(255, 255, 255, 0.1)'
Thanks for the component, very nice and easy to use!
I would like to set a background image for each page but I can't find the way to implement it. Is it possible to do?