about summary refs log tree commit diff
path: root/src/view
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-10-17 19:16:42 +0300
committerGitHub <noreply@github.com>2024-10-17 11:16:42 -0500
commit59f9cd916e23005a6123f8eb3f5c1cbb47b91344 (patch)
treecb557738fbfc06b388e9d96e3252c1871a109ab2 /src/view
parent74b0929e4d79690394c1217f63e458da5bf7317b (diff)
downloadvoidsky-59f9cd916e23005a6123f8eb3f5c1cbb47b91344.tar.zst
Fix PageWithHeader header leaking into safe area (#5792)
* fix header leaking out of safe area

* make fix native-only
Diffstat (limited to 'src/view')
-rw-r--r--src/view/com/pager/Pager.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/pager/Pager.tsx b/src/view/com/pager/Pager.tsx
index ea88f7390..4d5da960c 100644
--- a/src/view/com/pager/Pager.tsx
+++ b/src/view/com/pager/Pager.tsx
@@ -7,7 +7,7 @@ import PagerView, {
 } from 'react-native-pager-view'
 
 import {LogEvents} from '#/lib/statsig/events'
-import {s} from 'lib/styles'
+import {atoms as a, native} from '#/alf'
 
 export type PageSelectedEvent = PagerViewOnPageSelectedEvent
 const AnimatedPagerView = Animated.createAnimatedComponent(PagerView)
@@ -133,14 +133,14 @@ export const Pager = forwardRef<PagerRef, React.PropsWithChildren<Props>>(
     )
 
     return (
-      <View testID={testID} style={s.flex1}>
+      <View testID={testID} style={[a.flex_1, native(a.overflow_hidden)]}>
         {renderTabBar({
           selectedPage,
           onSelect: onTabBarSelect,
         })}
         <AnimatedPagerView
           ref={pagerView}
-          style={s.flex1}
+          style={[a.flex_1]}
           initialPage={initialPage}
           onPageScrollStateChanged={handlePageScrollStateChanged}
           onPageSelected={onPageSelectedInner}