I want to change 'resizeMode' of ParallaxImage but I can not.
After set style={{resizeMode: 'contain'}} does not working for me.
containerStyle={[Styles.imageContainer]}
style={{resizeMode : 'contain'}}
showSpinner={true}
{...parallaxProps}
/>
How can I change it? Please help me?
Hi @SnowDang,
If you take a look at this line of code, you'll see that component's style take precedence over yours. I did that in order to prevent potential mistakes, particularly setting the position to something other than relative (which would completely mess with the parallax effect).
I will shortly push a fix that will allow you to pass your custom styles.
And here you are!
If you want to use this commit right away, you can modify your package.json file this way:
"react-native-snap-carousel": "https://github.com/archriss/react-native-snap-carousel#b4b3104
Can you confirm that it works as expected?
Thank @bd-arc very much.
I can modify it with your way.
@SnowDang The fix is available in version 3.2.2 ;-)
Most helpful comment
@SnowDang The fix is available in version
3.2.2;-)