shahen94 / react-native-switch

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

Fix circleBorder color #88

Closed WitoDelnat closed 3 years ago

WitoDelnat commented 4 years ago

The props are incorrectly deconstructed:

static propTypes = {
    // ..
    circleBorderActiveColor: PropTypes.string,
    circleBorderInactiveColor: PropTypes.string,
    // ...
  };

// In render
const {
  circleInactiveBorderColor,
  circleActiveBorderColor,
  ...restProps
} = this.props;