Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const translateY = getTranslateY(animatedDiffClampY, headerHeight)
return (
)
}
}
const CollapsibleHeaderBackView = withOrientation(_CollapsibleHeaderBackView);
const collapsibleNavigationOptions = (configOptions, userOptions, navigation) => {
userOptions = {
...configOptions,
...userOptions,
headerStyle:{
...configOptions.headerStyle,
...userOptions.headerStyle
}
};
const navigationParams = navigation.state.params;
if(!navigationParams || !navigationParams.animatedYSum ){
// console.log('navigationParams is null');
return userOptions;
flexDirection: 'column-reverse',
overflow: 'hidden',
},
scenes: {
flex: 1,
},
floatingHeader: {
// @ts-ignore
position: Platform.select({ default: 'absolute', web: 'fixed' }),
left: 0,
top: 0,
right: 0,
},
});
export default withOrientation(StackViewLayout);