onChange not called on ios
See original GitHub issuehi,
the onchange callback is never called on my system (ios). it works perfectly on android.
using version 1.0.0
thanks, dan
return (<ModalSelector style={{ height: 1, width: 1, position: 'absolute', borderWidth: 1, borderColor: 'red' }}
visible={this.state.showModal}
data={this.state.photoOrigins}
onChange={() => {
alert('asdasd'); // THIS ONE IS NOT CALLED
}}
onModalClose={() => {
this.setState({
showModal: false
})
}} />)
Issue Analytics
- State:
- Created 5 years ago
- Comments:23 (11 by maintainers)
Top Results From Across the Web
Why onchange function not working in safari
If you change onchange to onblur it works for iOS but not others. The fix I eventually came to was to use BOTH...
Read more >onChange with ScenePhase not work…
In Xcode 12 beta 4, running my app on the iPhone simulator, I don't get an .active change for initial launch in either...
Read more >onChange not working with custom React TextField ...
I've attempted a number of different approaches - none of which seem to work. My best guess is that though the onChange property...
Read more >Responding to state changes using onChange()
What all this means is that you can do whatever you want inside the onChange() function: you can call methods, run an algorithm...
Read more >[Solved]-SwiftUI - onChange not getting called
Related Posts · cocos2d OpenGL error 0x0502 in -[EAGLView swapBuffers] · Expedited review - send again or not? · Modify the BLE device...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I’d like to report the same as the other guys, onChange is not firing on IOS running on
React 16.3.1
andreact-native 0.55.4
(No expo).I had not specified
closeOnChange
so it defaults to true, I guessonDismiss
is not getting called, or thechangedItem
is undefined by the time it get’s calledThanks for the PR @jacobkring
Published in v2.0.0