fix header

This commit is contained in:
ammarahm-ed
2020-01-31 18:40:56 +05:00
parent 430b2f847b
commit 6e2c2e0cf0
3 changed files with 22 additions and 23 deletions

View File

@@ -27,22 +27,23 @@ export const SelectionHeader = ({navigation}) => {
return (
<Animatable.View
transition={['backgroundColor', 'opacity', 'height']}
duration={300}
transition={['translateY']}
duration={700}
useNativeDriver={true}
style={{
width: '100%',
position: 'absolute',
height: selectionMode
? Platform.OS === 'android'
? 50 + StatusBar.currentHeight
: 50
: 0,
opacity: selectionMode ? 1 : 0,
height: Platform.OS === 'android' ? 50 + StatusBar.currentHeight : 50,
backgroundColor: colors.bg,
paddingTop: Platform.OS === 'ios' ? 0 : StatusBar.currentHeight,
justifyContent: 'flex-end',
zIndex: 11,
zIndex: 999,
paddingHorizontal: 12,
transform: [
{
translateY: selectionMode ? 0 : -100,
},
],
}}>
<View
style={{