import * as React from 'react'
import { NavigationScreenConfigProps } from 'react-navigation'
import { StyleSheet, View, Text, TouchableOpacity, StatusBar } from 'react-native'
import { CollapsibleHeaderScrollView } from 'react-native-collapsible-header-views'
import { getStatusBarHeight } from 'react-native-iphone-x-helper'
const Header = ({ goBack }: { goBack: () => void }) => (
{'<-'}
WITHOUT SNAP
)
export const WithoutSnap = ({ navigation }: NavigationScreenConfigProps) => (
<>
navigation.goBack()} />}
headerHeight={100}
statusBarHeight={getStatusBarHeight(true)}
headerContainerBackgroundColor={'green'}
disableHeaderSnap={true}
>
>
)
const styles = StyleSheet.create({
content: {
width: '100%',
height: 2000,
backgroundColor: 'wheat',
borderTopWidth: 5,
borderBottomWidth: 5,
borderColor: 'orange'
},
header: {
flex: 1,
backgroundColor: 'green',
justifyContent: 'flex-start',
alignItems: 'center',
flexDirection: 'row'
},
backButton: {
height: 94,
width: 94,
justifyContent: 'center',
alignItems: 'center'
},
title: {
fontWeight: 'bold',
fontSize: 20,
color: 'white'
}
})