Coder Social home page Coder Social logo

Comments (15)

YanYuanFE avatar YanYuanFE commented on May 21, 2024

Currently does not support landscape screen, will be considered compatible in the future

from react-native-signature-canvas.

Aishwaryashetty avatar Aishwaryashetty commented on May 21, 2024

I can sign in landscape n portrait, but when I change from landscape to portrait or visa versa, due to dimension change the signature is cleared.

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on May 21, 2024

Can you provide a working code example?

from react-native-signature-canvas.

zengqinghua1 avatar zengqinghua1 commented on May 21, 2024

I also encountered a similar problem. When the keyboard of the page popped up, the content of the signed version was cleared. How can this be solved?

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on May 21, 2024

expo version?react-native-signature-canvas version? code example?

from react-native-signature-canvas.

zengqinghua1 avatar zengqinghua1 commented on May 21, 2024

I did not use Expo to create a project, I used a project created by yarn
"react-native-signature-canvas": "^1.9.0"
<Signature
onOK={this.handleSignature}
onEmpty={this.handleEmpty}
descriptionText=""
clearText="Clear"
confirmText="Save"
webStyle={style}
style={{ marginTop: 10 }}
/>

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on May 21, 2024

I did not use Expo to create a project, I used a project created by yarn
"react-native-signature-canvas": "^1.9.0"
<Signature
onOK={this.handleSignature}
onEmpty={this.handleEmpty}
descriptionText=""
clearText="Clear"
confirmText="Save"
webStyle={style}
style={{ marginTop: 10 }}
/>

Are you use react-native-cli init project?

from react-native-signature-canvas.

zengqinghua1 avatar zengqinghua1 commented on May 21, 2024

Yes, how to solve this problem

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on May 21, 2024

How to reproduce this problem?sign page has not keyboard. you sign page has Input?

from react-native-signature-canvas.

zengqinghua1 avatar zengqinghua1 commented on May 21, 2024

<TextInput
ref={(view)=>this.inputText = view}
editable={this.state.isEdit}
style={styles.inupt}
onChangeText={(inputData) => {
// this.setState({ signName: inputData })
this.inputText.setNativeProps({
signName: inputData
});
}} >{this.state.signName}
<Signature
onOK={this.handleSignature}
onEmpty={this.handleEmpty}
descriptionText=""
clearText="Clear"
confirmText="Save"
webStyle={style}
style={{ marginTop: 10 }}
/>

I added an input box component above the signed component

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on May 21, 2024

"react-native-signature-canvas": "^2.2.0" has fixed this problem.

from react-native-signature-canvas.

zengqinghua1 avatar zengqinghua1 commented on May 21, 2024

Thank you very much for your modification.
But there is still a small problem, why does the signature board tremble when the keyboard pops up or retracts?

from react-native-signature-canvas.

YanYuanFE avatar YanYuanFE commented on May 21, 2024

Signature is a Canvas of webview, when the keyboard pops up, window has been resize, canvas size has been change.

from react-native-signature-canvas.

oohajadya avatar oohajadya commented on May 21, 2024

I can sign in landscape n portrait, but when I change from landscape to portrait or visa versa, due to dimension change the signature is cleared.

from react-native-signature-canvas.

viswaKyro avatar viswaKyro commented on May 21, 2024

The signature disappears on the change of orientation.

Able to fix this issue? I am using react-native-signature-canvas: 4.5.0.

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.