shahen94 / react-native-switch

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

[Feature] Reduce the number of props #95

Open alamenai opened 3 years ago

alamenai commented 3 years ago

I've noticed that you used many properties though there are ones that can be reduced in one property.

Current

<Switch
    backgroundActive={'green'}
    backgroundInactive={'gray'}
  />

Suggested

<Switch
    background={active:'green',inActive:'gray'}
  />