YanYuanFE / react-native-signature-canvas

:black_nib: React Native Signature Component based WebView Canvas for Android && IOS && expo
MIT License
425 stars 151 forks source link

landscape mode not working #206

Closed oohajadya closed 2 years ago

oohajadya commented 2 years ago

i want to change the portrait mode to landscape mode , if im using rotated={true} there are no changes

YanYuanFE commented 2 years ago

it not support dynamic change rotated prop

oohajadya commented 2 years ago

then how can i change my entire screen to landscape?

YanYuanFE commented 2 years ago

you can use a state to let the component rerender.

const [key, setKey] = useState(0);

return (
<>
{key === 1 <Signature/> : <Signature rotated/>}
</>
)
YanYuanFE commented 2 years ago

if you use rotated props, you need open landscape mode , for example, use react-native-orientation