shahen94 / react-native-switch

Customisable switch component for RN
MIT License
296 stars 172 forks source link

Add Border Radius Prop #61

Closed rjerue closed 5 years ago

rjerue commented 5 years ago

Hello,

I'm using this component in a RN/React Native Web Project and wanted to just add a prop that gives me a bit more control of the border radius of the outside switch. Code additions are pretty self explanatory. We add another prop called switchBorderRadius and if it exists, it uses it for the border radius as opposed to the circle size.

Also added a note to the readme that this is compatible with React Native Web!