React Native中clipsToBounds = true的替代方案是什么?我的子视图超出了父视图的范围。在使用swift的iOS中,我会用clipsToBounds = true解决这个问题
发布于 2019-03-21 22:15:29
您必须使用视图的style属性并将overflow设置为hidden。如下所示:
<View style={{ overflow: ‘hidden’ }}>
{/* These views won’t be presented out of the view */}
</View>https://stackoverflow.com/questions/55282415
复制相似问题