What is an alternative to clipsToBounds = true
in React Native? I have subviews going beyond the bounds of a parent view. In iOS using swift, I would solve it with clipsToBounds = true
You have to use the style
property of your view and set overflow
to hidden
. Something like this:
<View style={{ overflow: ‘hidden’ }}>
{/* These views won’t be presented out of the view */}
</View>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With