YanYuanFE / react-native-signature-canvas

:black_nib: React Native Signature Component based WebView Canvas for Android && IOS && expo
MIT License
427 stars 153 forks source link

"onOk" not called on Android #82

Open sertiano93 opened 4 years ago

sertiano93 commented 4 years ago

I am loading a saved signature into the signature pad and when I am pressing confirm, onOk that should handle the signature never gets called. This work on iOS (simulators) but when I am trying it on my Samsung Galaxy s7 edge, it doesn't work. Am I missing something ?

YanYuanFE commented 4 years ago

Please give an example can run? and provide your env info

sertiano93 commented 4 years ago

<View> <SignatureScreen onBegin={this.onBegin} dataURL={signature} onOK={this.handleSignature} onEmpty={this.handleEmpty}> </View>

So in this view here, I am inserting a saved signature into dataURL. What I noticed is that when I am using "react-native-orientation-locker": "^1.2.0" , and the view is on landscape mode (either left or right), and then press confirm , onEmpty is called instead of onOK, this only happens on my android device and not iOS emulator