[英]React-Native : Orientation becomes locked on mount of signature component
我使用react-native-signature-capture進行簽名。
<RNSignatureCapture
onSaveEvent={(result) => this.onSignatureSave(result)}
saveImageFileInExtStorage={false}
showNativeButtons={false}
viewMode={this.state.landscapeMode ? "landscape" : "portrait"}
/>
ViewMode
確定屏幕的方向。 但問題是在首次渲染RNSignatureCapture
總應用程序被鎖定到ViewMode
給出的相同方向之后。 擺脫它的唯一可能方法是刪除應用程序。
一旦卸下RNSignatureCapture
是否有任何方法可根據設備運動進行自動定位?
謝謝。
如果未提供ViewMode
道具,那么app將無法鎖定到特定方向。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.