const React = require('react'); const { Component } = require('react'); const { StyleSheet, ScrollView, View, Button, Platform } = require('react-native'); const { Navigation } = require('react-native-navigation'); const testIDs = require('../testIDs'); const FAB = 'fab'; class ScrollViewScreen extends Component { static options() { return { topBar: { title: { text: 'Collapse', color: 'black', fontSize: 16 }, drawBehind: true, visible: true, testID: testIDs.TOP_BAR_ELEMENT }, fab: { id: FAB, backgroundColor: 'blue', clickColor: 'blue', rippleColor: 'aquamarine', hideOnScroll: true } }; } constructor(props) { super(props); this.state = { topBarHideOnScroll: false }; this.onClickToggleTopBarHideOnScroll = this.onClickToggleTopBarHideOnScroll.bind(this); this.onClickPop = this.onClickPop.bind(this); } render() { return (