diff --git a/src/screens/Proximo/ProximoListScreen.js b/src/screens/Proximo/ProximoListScreen.js index 3f30ba5..a59db43 100644 --- a/src/screens/Proximo/ProximoListScreen.js +++ b/src/screens/Proximo/ProximoListScreen.js @@ -10,7 +10,6 @@ import ProximoListItem from "../../components/Lists/Proximo/ProximoListItem"; import MaterialHeaderButtons, {Item} from "../../components/Overrides/CustomHeaderButton"; import {withCollapsible} from "../../utils/withCollapsible"; import CustomTabBar from "../../components/Tabbar/CustomTabBar"; -import AutoHideHandler from "../../utils/AutoHideHandler"; function sortPrice(a, b) { return a.price - b.price; @@ -59,7 +58,6 @@ class ProximoListScreen extends React.Component { modalRef: Object; listData: Array; shouldFocusSearchBar: boolean; - hideHandler: AutoHideHandler; constructor(props) { super(props); @@ -70,8 +68,6 @@ class ProximoListScreen extends React.Component { currentSortMode: 3, modalCurrentDisplayItem: null, }; - this.hideHandler = new AutoHideHandler(false); - this.hideHandler.addListener(this.onHideChange); } @@ -301,17 +297,8 @@ class ProximoListScreen extends React.Component { itemLayout = (data, index) => ({length: LIST_ITEM_HEIGHT, offset: LIST_ITEM_HEIGHT * index, index}); - - onScroll = (event: Object) => { - this.hideHandler.onScroll(event); - }; - - onHideChange = (shouldHide: boolean) => { - this.props.navigation.setParams({hideTabBar: shouldHide}); - } - render() { - const {containerPaddingTop, scrollIndicatorInsetTop, onScrollWithListener} = this.props.collapsibleStack; + const {containerPaddingTop, scrollIndicatorInsetTop, onScroll} = this.props.collapsibleStack; return ( { getItemLayout={this.itemLayout} initialNumToRender={10} // Animations - onScroll={onScrollWithListener(this.onScroll)} + onScroll={onScroll} contentContainerStyle={{ paddingTop: containerPaddingTop, paddingBottom: CustomTabBar.TAB_BAR_HEIGHT