const React = require('react'); const { Component } = require('react'); const { View, Text, Button } = require('react-native'); const { Navigation } = require('react-native-navigation'); const TestIDs = require('../testIDs'); class OrientationDetectScreen extends Component { constructor(props) { super(props); this.detectHorizontal = this.detectHorizontal.bind(this); this.state = { horizontal: false }; Navigation.mergeOptions(this.props.componentId, { layout: { orientation: props.orientation } }); } render() { return ( {`Orientation Screen`}