简体   繁体   中英

How to create switch buttons on react-native?

我尝试使用此https://github.com/ArnaudRinquin/react-native-radio-buttons在Iphone上看起来不错,但是在android上看起来像这里

If you can set the style props of the buttons container, you need to set the property overflow in your js StyleSheet like that:

const styles = StyleSheet.create({
   containerStyle: {
     ...,
     overflow: 'hidden',
   },
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM