const React = require('react'); const { Component } = require('react'); const { View, Text, Button, Platform, StatusBar } = require('react-native'); const { Navigation } = require('react-native-navigation'); const testIDs = require('../testIDs'); const BUTTON_ONE = 'buttonOne'; const BUTTON_TWO = 'buttonTwo'; const CUSTOM_BUTTON = 'customButton'; const CUSTOM_BUTTON2 = 'customButton2'; const BUTTON_LEFT = 'buttonLeft'; const FAB = 'fab'; const TOPBAR_HEIGHT = 67; class OptionsScreen extends Component { constructor(props) { super(props); Navigation.events().bindComponent(this); } static get options() { return { statusBar: { style: 'dark', backgroundColor: '#EDEDED' }, topBar: { title: { text: 'Static Title', _height: TOPBAR_HEIGHT, color: 'black', fontSize: 16, alignment: 'center', fontFamily: 'HelveticaNeue-Italic' }, largeTitle: { visible: false }, subtitle: { text: 'Static Subtitle', color: 'red', fontFamily: 'HelveticaNeue-Italic', alignment: 'center' }, background: { component: { name: 'TopBarBackground', passProps: { color: '#bbdefb' } } }, ...Platform.select({ android: { drawBehind: true }, ios: { drawBehind: false, } }), _height: TOPBAR_HEIGHT, visible: true, testID: testIDs.TOP_BAR_ELEMENT, borderColor: 'red', borderHeight: 1, rightButtons: [ // { // id: CUSTOM_BUTTON, // testID: CUSTOM_BUTTON, // component: 'CustomTextButton' // }, { id: CUSTOM_BUTTON2, testID: CUSTOM_BUTTON2, component: { name: 'CustomRoundedButton', passProps: { title: 'Two' } } }, { id: BUTTON_ONE, testID: BUTTON_ONE, text: 'One', fontFamily: 'HelveticaNeue-Italic', fontSize: 28, color: 'red' } ], leftButtons: { id: BUTTON_LEFT, testID: BUTTON_LEFT, icon: require('../../img/navicon_add.png'), text: 'Left', color: 'purple' } }, fab: { id: FAB, backgroundColor: 'orange', clickColor: 'orange', rippleColor: 'red', alignHorizontally: 'left', actions: [ { id: 'fab1', backgroundColor: 'blue', clickColor: 'blue', rippleColor: 'aquamarine', }, { id: 'fab2', backgroundColor: 'blueviolet', clickColor: 'blueviolet', size: 'mini', rippleColor: 'aquamarine', } ] } }; } render() { return ( {`Options Screen`}