const React = require('react'); const { Component } = require('react'); const { View, Text, Button, Platform } = 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'; class OptionsScreen extends Component { static get options() { return { topBar: { title: { text: 'Static Title', color: 'black', fontSize: 16, fontFamily: 'HelveticaNeue-Italic', largeTitle: false }, ...Platform.select({ android: { drawBehind: true }, ios: { drawBehind: false, } }), visible: true, testID: testIDs.TOP_BAR_ELEMENT, rightButtons: [ // { // id: CUSTOM_BUTTON, // testID: CUSTOM_BUTTON, // component: 'CustomTextButton' // }, { id: CUSTOM_BUTTON2, testID: CUSTOM_BUTTON2, component: 'CustomRoundedButton' }, { id: BUTTON_ONE, testID: BUTTON_ONE, title: 'One', buttonFontSize: 28, buttonColor: 'red' } ], leftButtons: [{ id: BUTTON_LEFT, testID: BUTTON_LEFT, icon: require('../../img/navicon_add.png'), title: 'Left', buttonColor: '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', } ] } }; } constructor(props) { super(props); this.onClickDynamicOptions = this.onClickDynamicOptions.bind(this); this.onClickShowTopBar = this.onClickShowTopBar.bind(this); this.onClickHideTopBar = this.onClickHideTopBar.bind(this); this.onClickScrollViewScreen = this.onClickScrollViewScreen.bind(this); this.onClickTopBarTransparent = this.onClickTopBarTransparent.bind(this); this.onClickTopBarOpaque = this.onClickTopBarOpaque.bind(this); this.onClickCustomTranstition = this.onClickCustomTranstition.bind(this); this.onClickShowOverlay = this.onClickShowOverlay.bind(this); this.onClickPushDefaultOptionsScreen = this.onClickPushDefaultOptionsScreen.bind(this); this.onClickFab = this.onClickFab.bind(this); } render() { return ( {`Options Screen`}