added orientation locker

This commit is contained in:
2021-01-22 14:54:34 +01:00
parent 36cfd8f69f
commit 6bff17f226
6 changed files with 17 additions and 2 deletions

View File

@@ -1,7 +1,11 @@
import React, {PropsWithChildren} from 'react';
import React, {PropsWithChildren, useEffect} from 'react';
import {StyleSheet, View} from 'react-native';
import Orientation from 'react-native-orientation-locker';
export default function Deck(props: PropsWithChildren<{}>) {
useEffect(() => {
Orientation.lockToPortrait();
});
return (
<>
<View style={style.view}>{props.children}</View>