Commit 1a802187 authored by W.D.R.P. Sandeepa's avatar W.D.R.P. Sandeepa

create landscape screen

parent 30f54658
......@@ -22,4 +22,19 @@ export default function Blue() {
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