diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-01-21 21:36:09 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-21 21:36:09 +0000 |
commit | f0cc83154b7e0d26af4a0c44c0fe78a9589d3f93 (patch) | |
tree | 7f1edb6bfb46972980772e47d3cbaeca04421186 /src/components | |
parent | f5b277c9f862c7aed900cf18d72280ad13a90338 (diff) | |
download | voidsky-f0cc83154b7e0d26af4a0c44c0fe78a9589d3f93.tar.zst |
move indicatorStyle to `List` (#7526)
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Layout/index.tsx | 2 | ||||
-rw-r--r-- | src/components/StarterPack/ProfileStarterPacks.tsx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Layout/index.tsx b/src/components/Layout/index.tsx index 8532cbbb4..489ebb225 100644 --- a/src/components/Layout/index.tsx +++ b/src/components/Layout/index.tsx @@ -58,6 +58,7 @@ export const Content = React.memo(function Content({ contentContainerStyle, ...props }: ContentProps) { + const t = useTheme() const {footerHeight} = useShellLayout() const animatedProps = useAnimatedProps(() => { return { @@ -73,6 +74,7 @@ export const Content = React.memo(function Content({ <Animated.ScrollView id="content" automaticallyAdjustsScrollIndicatorInsets={false} + indicatorStyle={t.scheme === 'dark' ? 'white' : 'black'} // sets the scroll inset to the height of the footer animatedProps={animatedProps} style={[scrollViewStyles.common, style]} diff --git a/src/components/StarterPack/ProfileStarterPacks.tsx b/src/components/StarterPack/ProfileStarterPacks.tsx index 64307070b..d8925684b 100644 --- a/src/components/StarterPack/ProfileStarterPacks.tsx +++ b/src/components/StarterPack/ProfileStarterPacks.tsx @@ -136,7 +136,6 @@ export const ProfileStarterPacks = React.forwardRef< headerOffset={headerOffset} progressViewOffset={ios(0)} contentContainerStyle={{paddingBottom: headerOffset + bottomBarOffset}} - indicatorStyle={t.name === 'light' ? 'black' : 'white'} removeClippedSubviews={true} desktopFixedHeight onEndReached={onEndReached} |