-
-
Save joaquin-viera/0b0a1e15022950ce6f48e265e28c65b0 to your computer and use it in GitHub Desktop.
Landscape Orientation - App.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { StyleSheet, View } from 'react-native'; | |
import VideoPlayer from './Components/VideoPlayer'; | |
import Orientation from 'react-native-orientation-locker'; | |
Orientation.lockToPortrait(); | |
const App = () => { | |
return ( | |
<View style={styles.container}> | |
<VideoPlayer /> | |
</View> | |
); | |
}; | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
justifyContent: 'center', | |
backgroundColor: 'black', | |
}, | |
}); | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment