baderahmed/react-native-customisable-switch

activeText could accept another component (ie: Icon)

Opened this issue · 0 comments

This seems pretty trivial, actually. You can adjust the propType checking of activeText and inactiveText to

React.PropTypes.oneOfType([
  React.PropTypes.string, 
  React.PropTypes.object 
])

This would provide the ability to show icons (or other components) in the inactive or active states.