TronNatthakorn / react-native-wheel-pick

Apache License 2.0
177 stars 85 forks source link

Selected value is always based on props #25

Closed Falgantil closed 1 year ago

Falgantil commented 1 year ago

By always using 'props.selectedValue' instead of storing it internally in the State, it opens up the opportunity to change the selected value from outside the component. Very useful if you don't know the value at initial-render-time.