什么是 clipsToBounds = true
的替代品在 React Native 中?我有超出父 View 范围的 subview 。在使用 swift 的 iOS 中,我会用 clipsToBounds = true
解决它
最佳答案
您必须使用 style
您的 View 和设置的属性 overflow
至 hidden
.像这样的东西:
<View style={{ overflow: ‘hidden’ }}>
{/* These views won’t be presented out of the view */}
</View>
关于react-native - React Native 中的 clipsToBounds,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55282415/