added orientation locker
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user