简体   繁体   English

React-Native:方向在签名组件的安装上被锁定

[英]React-Native : Orientation becomes locked on mount of signature component

I am using react-native-signature-capture for sign purpose. 我使用react-native-signature-capture进行签名。

<RNSignatureCapture
    onSaveEvent={(result) => this.onSignatureSave(result)}
    saveImageFileInExtStorage={false}
    showNativeButtons={false}
    viewMode={this.state.landscapeMode ? "landscape" : "portrait"}
/>

ViewMode determines the orientation of the screen. ViewMode确定屏幕的方向。 But the problem is after first render of the RNSignatureCapture total app gets locked to the same orientation as given in ViewMode . 但问题是在首次渲染RNSignatureCapture总应用程序被锁定到ViewMode给出的相同方向之后。 The only possible way to get rid of it is deleting the app. 摆脱它的唯一可能方法是删除应用程序。

Is there any way for auto orientation according to device movement once the RNSignatureCapture is unmounted? 一旦卸下RNSignatureCapture是否有任何方法可根据设备运动进行自动定位?

Thank You. 谢谢。

如果未提供ViewMode道具,那么app将无法锁定到特定方向。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM