react-native-switch icon indicating copy to clipboard operation
react-native-switch copied to clipboard

[Feature] Reduce the number of props

Open alamenai opened this issue 3 years ago • 0 comments

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'}
  />

alamenai avatar Jul 06 '21 10:07 alamenai