szimek / signature_pad

HTML5 canvas based smooth signature drawing
http://szimek.github.io/signature_pad/
MIT License
10.91k stars 2.11k forks source link

TypeError: Cannot convert null value to object #729

Closed davidasconsulting closed 1 year ago

davidasconsulting commented 1 year ago

After upgrading my Expo app to "expo": "^49.0.0" "react-native": "0.72.3", "react-native-signature-pad-v2": "1.1.0"

I get the error:

TypeError: Cannot convert null value to object

This error is located at: in Unknown (created by SignaturePad) in SignaturePad (created by SignatureScreen) in RCTView (created by View) in View (created by SignatureScreen) in SignatureScreen (created by Connect(SignatureScreen)) in Connect(SignatureScreen) (created by SceneView) in StaticContainer

When loading the signature pad.

How do I solve this?

UziTech commented 1 year ago

If you create a minimal reproduction repo I can try to help debug it.

UziTech commented 1 year ago

It looks like this might be hard for me to debug since react-native-signature-pad-v2 uses version 1.3.2 of signature_pad. You can create an issue on their repo.

https://github.com/iJimmyWei/react-native-signature-pad-v2/blob/master/injectedJavaScript/signaturePad.js

davidasconsulting commented 1 year ago

Hi,

Thank you for your response. Are there any breaking changes between 1.3.2 and latest? Or can I upgrade that library to use your latest code?

Thanks

David

On Wed, Aug 23, 2023 at 7:16 AM Tony Brix @.***> wrote:

It looks like this might be hard for me to debug since react-native-signature-pad-v2 uses version 1.3.2 of signature_pad. You can create an issue on their repo.

https://github.com/iJimmyWei/react-native-signature-pad-v2/blob/master/injectedJavaScript/signaturePad.js

— Reply to this email directly, view it on GitHub https://github.com/szimek/signature_pad/issues/729#issuecomment-1689255355, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4MTBYZ4DN5LHH2HONLRKDXWV72ZANCNFSM6AAAAAA3XNVG3U . You are receiving this because you authored the thread.Message ID: @.***>

UziTech commented 1 year ago

There are some breaking changes around events but for basic usage you should be able update without a problem. See the changelog for more details.