Fixed crash on iOS
This commit is contained in:
父節點
9eb925d1a1
當前提交
759c369c93
共有 1 個文件被更改,包括 3 次插入 和 2 次删除
|
|
@ -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,
|
||||||
|
|
|
||||||
載入中…
Reference in a new issue