Skip to content

Instantly share code, notes, and snippets.

@janhesters
Created September 20, 2018 11:39
Show Gist options
  • Save janhesters/c6f3adbf4caabc7ef16edd7702cf8a4b to your computer and use it in GitHub Desktop.
Save janhesters/c6f3adbf4caabc7ef16edd7702cf8a4b to your computer and use it in GitHub Desktop.
import React, { Component } from "react";
import Orientation, { orientation } from "react-native-orientation";
import Navigator from "./navigation/Navigator";
interface Props {}
export default class App extends Component<Props> {
componentDidMount = () => {
Orientation.lockToPortrait();
};
render() {
return <Navigator />;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment