-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathInnerExplore.tsx
More file actions
27 lines (23 loc) · 774 Bytes
/
InnerExplore.tsx
File metadata and controls
27 lines (23 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Text, View } from 'react-native';
import { innerExploreStyle } from './styles';
import RNOrientationDirector, {
useDeviceOrientation,
} from 'react-native-orientation-director';
function InnerExplore() {
const deviceOrientation = useDeviceOrientation();
return (
<View style={innerExploreStyle.container}>
<Text>Inner Explore!</Text>
<View style={innerExploreStyle.marginBottom} />
<View style={innerExploreStyle.body}>
<Text style={[innerExploreStyle.text, innerExploreStyle.marginBottom]}>
Current Device Orientation:
{RNOrientationDirector.convertOrientationToHumanReadableString(
deviceOrientation
)}
</Text>
</View>
</View>
);
}
export default InnerExplore;