const React = require('react'); const { PureComponent } = require('react'); const { View, Text } = require('react-native'); const FAB = 'fab'; class TopTabScreen extends PureComponent { static options() { return { topBar: { title: { color: 'black', fontSize: 16, fontFamily: 'HelveticaNeue-Italic' } }, fab: { id: FAB, backgroundColor: 'blue', clickColor: 'blue', rippleColor: 'aquamarine' } }; } render() { return ( {this.props.text || 'Top Tab Screen'} {`this.props.componentId = ${this.props.componentId}`} ); } } module.exports = TopTabScreen; const styles = { root: { flexGrow: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#f5fcff' }, h1: { fontSize: 24, textAlign: 'center', margin: 10 }, h2: { fontSize: 12, textAlign: 'center', margin: 10 }, footer: { fontSize: 10, color: '#888', marginTop: 10 } };