1
我有一个简单的进度条,它有一个borderRadius和溢出设置为hidden
。我有这个孩子,它没有borderRadius,并且它在角落外溢出。这里是我的标记:溢出隐藏没有影响
<View style={style.progressbar}>
<View style={[style.progressbarfill, { width:'50%' }]} />
</View>
const style = {
progressbar: {
backgroundColor: '#ccc',
height: 25,
width: '90%',
borderRadius: 12,
overflow: 'hidden'
},
progressbarfill: {
backgroundColor: 'springgreen',
width: '10%',
height: '100%'
}
}
这是什么样子:
我把其中绿色是覆盖边界箭头。绿色不应该溢出边缘。
有谁知道这是为什么?
Ooo非常感谢泰勒为此。这是你阅读它的地方 - https://facebook.github.io/react-native/releases/0.26/docs/known-issues.html#the-overflow-style-property-defaults-to-hidden-and-不能在android上更改? – Noitidart
是啊!没问题。我正在研究一些更新的版本,您可能会检查您的React native版本,并查看这些版本说明是否适合您。我知道这些已经过时了,但我找不到任何修正此问题的新版本,但是可能?我有0.42,我仍然有这个问题...所以如果你解决它!让我知道! @Noitidart –
谢谢你的提示,我一定会让你知道的。我也在0.42 :) – Noitidart