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'); let globalFirstComponentID; class TextScreen extends Component { static get options() { return { bottomTabs: { testID: testIDs.BOTTOM_TABS_ELEMENT }, topBar: { testID: testIDs.TOP_BAR_ELEMENT } }; } constructor(props) { super(props); globalFirstComponentID = (props.text === 'This is tab 1') ? props.componentId : globalFirstComponentID; this.onClickPop = this.onClickPop.bind(this); } render() { return ( {this.props.text || 'Text Screen'} {this.renderTextFromFunctionInProps()} {`this.props.componentId = ${this.props.componentId}`}