Skip to content

Instantly share code, notes, and snippets.

@joaquin-viera
Created Jan 8, 2021
Embed
What would you like to do?
Landscape Orientation - App.js
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