diff --git a/README.md b/README.md index 0c1945ac..5f3b6924 100644 --- a/README.md +++ b/README.md @@ -246,6 +246,10 @@ Disable scroll for unfocused routes is optional, but prevents weird/delayed anim Content container style with top padding with the same height as the tab bar + header height. +in#### progressViewOffset + +Needed for the loading indicator to show correctly on android. + #### onMomentumScrollBegin Callback to set `isGliding` to `true`. diff --git a/src/types.ts b/src/types.ts index 1db1e34f..4e566c52 100644 --- a/src/types.ts +++ b/src/types.ts @@ -79,6 +79,10 @@ export type CollapsibleScenePropsAndRef = { contentContainerStyle: { paddingTop: number; }; + /** + * Needed for the loading indicator to show correctly on android. + */ + progressViewOffset: number; } & Pick< CollapsibleContext, 'onMomentumScrollBegin' | 'onScrollEndDrag' | 'onMomentumScrollEnd' diff --git a/src/useCollapsibleScene.tsx b/src/useCollapsibleScene.tsx index c7a10055..bca02bd3 100644 --- a/src/useCollapsibleScene.tsx +++ b/src/useCollapsibleScene.tsx @@ -54,6 +54,7 @@ const useCollapsibleScene = ( contentContainerStyle: { paddingTop: headerHeight + tabBarHeight, }, + progressViewOffset: headerHeight + tabBarHeight, ...rest, }; };