forked from vergnet/application-amicale
Fixed crash on iOS
This commit is contained in:
parent
9eb925d1a1
commit
759c369c93
1 changed files with 3 additions and 2 deletions
|
@ -14,12 +14,13 @@ export const withCollapsible = (Component: any) => {
|
|||
progress,
|
||||
opacity,
|
||||
} = useCollapsibleStack();
|
||||
const statusbarHeight = StatusBar.currentHeight != null ? StatusBar.currentHeight : 0;
|
||||
return <Component
|
||||
collapsibleStack={{
|
||||
onScroll,
|
||||
onScrollWithListener,
|
||||
containerPaddingTop: containerPaddingTop - StatusBar.currentHeight,
|
||||
scrollIndicatorInsetTop: scrollIndicatorInsetTop - StatusBar.currentHeight,
|
||||
containerPaddingTop: containerPaddingTop - statusbarHeight,
|
||||
scrollIndicatorInsetTop: scrollIndicatorInsetTop - statusbarHeight,
|
||||
translateY,
|
||||
progress,
|
||||
opacity,
|
||||
|
|
Loading…
Reference in a new issue