Commit 5b9279bb authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

Merge branch 'it18218640' into 'master'

create landscape screen

See merge request !58
parents 3001d3fe 285a2354
...@@ -22,4 +22,19 @@ export default function Blue() { ...@@ -22,4 +22,19 @@ export default function Blue() {
const navigation = useNavigation(); const navigation = useNavigation();
React.useEffect(() => {
const unsubscribe = navigation.addListener("focus", () => {
// The screen is focused
// Call any action
Orientation.unlockAllOrientations();
Orientation.lockToLandscape();
});
return unsubscribe;
}, [navigation]);
return(
<Text></Text>
)
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment