React native 如何在react native中的WebView中指定角半径
我添加了一个视图作为Webview的容器,然后添加了React native 如何在react native中的WebView中指定角半径,react-native,React Native,我添加了一个视图作为Webview的容器,然后添加了corderRadius,但没有起作用 <View flex={1} borderTopLeftRadius={12} borderTopRightRadius={12} > <WebView style={{ flex: 1 }} /> </View> 我找到了解决方案,只需在父视图中添加溢出:“隐藏”
corderRadius
,但没有起作用
<View
flex={1}
borderTopLeftRadius={12}
borderTopRightRadius={12}
>
<WebView
style={{ flex: 1 }}
/>
</View>
我找到了解决方案,只需在父视图中添加
溢出:“隐藏”
<View
style={{
overflow: "hidden",
flex: 1,
borderTopLeftRadius: 12,
borderTopRightRadius: 12,
}}
>
<WebView style={{ flex: 1 }} />
</View>