aminebenkeroum / toggle-switch-react-native

Toggle Switch React Native Component works on both iOS and Android
MIT License
235 stars 70 forks source link

isOn state not updating dynamically #2

Closed mbashiq closed 6 years ago

mbashiq commented 6 years ago

<ToggleSwitch isOn={this.state.toggle} />

When I change the toggle state to true once all the components are rendered it doesn't update the toggle button to true

My code for changong the toggle state : this.setState({ toggle: true })

joterr commented 6 years ago

+1