Code Monkey home page Code Monkey logo

Comments (9)

robbywh avatar robbywh commented on July 24, 2024 21

@ruegreen i think you can use scrollEnabled props in the ScrollView, when onBegin triggered you can set scrollEnabled with false, when onEnd triggered you can set scrollEnabled with true

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on July 24, 2024

You can't use Signature in ScrollView yet. You can try adding a signature button in ScrollView, and clicking the button will pop up Modal and display Signature.

from react-native-signature-canvas.

jqtruong avatar jqtruong commented on July 24, 2024

indeed, i did just what you said and it works fine. I thought maybe using PanResponder would help with locking the scroll, but could not make it work. Will close for now, thanks.

from react-native-signature-canvas.

ruegreen avatar ruegreen commented on July 24, 2024

Has anyone been able to get this to work in scroll view?? Adding a Modal is not desirable...

from react-native-signature-canvas.

isocra avatar isocra commented on July 24, 2024

I can confirm that @robbywh's solution works for me. Thanks!!

from react-native-signature-canvas.

robbywh avatar robbywh commented on July 24, 2024

your welcome @isocra

from react-native-signature-canvas.

davwheat avatar davwheat commented on July 24, 2024

This doesn't seem to work very well any more.

When using @robbywh's method, it scrolls once before allowing me to sign like normal.

Anyone else had this issue/managed to fix it?

See this video for more info: https://u.davwheat.dev/ozBM2i.mp4

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on July 24, 2024

@davwheat ,Hi, I think this is not a bug. It is a conflict of interaction design. The touch of ScrollView conflicts with the touch interaction of the signature area. You can try to put the signature component in Modal and add a click button in the ScrollView. When the button is clicked, the display modal, and then sign in the modal.

from react-native-signature-canvas.

Akshaybagai52 avatar Akshaybagai52 commented on July 24, 2024

Thanks @YanYuanFE for your reply
it worked for me

from react-native-signature-canvas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.