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,
|
progress,
|
||||||
opacity,
|
opacity,
|
||||||
} = useCollapsibleStack();
|
} = useCollapsibleStack();
|
||||||
|
const statusbarHeight = StatusBar.currentHeight != null ? StatusBar.currentHeight : 0;
|
||||||
return <Component
|
return <Component
|
||||||
collapsibleStack={{
|
collapsibleStack={{
|
||||||
onScroll,
|
onScroll,
|
||||||
onScrollWithListener,
|
onScrollWithListener,
|
||||||
containerPaddingTop: containerPaddingTop - StatusBar.currentHeight,
|
containerPaddingTop: containerPaddingTop - statusbarHeight,
|
||||||
scrollIndicatorInsetTop: scrollIndicatorInsetTop - StatusBar.currentHeight,
|
scrollIndicatorInsetTop: scrollIndicatorInsetTop - statusbarHeight,
|
||||||
translateY,
|
translateY,
|
||||||
progress,
|
progress,
|
||||||
opacity,
|
opacity,
|
||||||
|
|
Loading…
Reference in a new issue