Skip to content

Instantly share code, notes, and snippets.

@joaquin-viera
Created January 8, 2021 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joaquin-viera/0b0a1e15022950ce6f48e265e28c65b0 to your computer and use it in GitHub Desktop.
Save joaquin-viera/0b0a1e15022950ce6f48e265e28c65b0 to your computer and use it in GitHub Desktop.
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