我设置了视图边框,以给TextInput
一些角。我使用了本地View
和TextInput
。
<View
style={{
borderColor: 'red',
borderRadius: 25,
borderWidth: 1,
height: 50
}}
>
<TextInput
underlineColorAndroid="transparent"
placeholder="Name"
/>
</View>
在android系统中(在仿真器(768 * 1280)和Motorola c2 mobile中都是这样)
有解决方案吗?
答案 0 :(得分:0)
这是已知的React Native问题Jagged rendering of round borders on Android #17311,并且已在0.56
版本中进行了修复。来自the last comment on that issue:
此修补程序现在是最新版本候选软件的一部分:https://github.com/facebook/react-native/releases/tag/v0.56.0-rc
该计划旨在每个月左右提供一个合理稳定的发行版,但是没有什么阻止任何人使用master上的React Native。将来,您可以通过使用master上的React Native或将您的react-native程序包固定到引入了此修复程序的提交中,来利用主版本中但尚未发布的任何修复程序。 >