mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

move indicatorStyle to `List` (#7526)

authored by samuel.fm and committed by

GitHub f0cc8315 f5b277c9

+3 -8
+2
src/components/Layout/index.tsx
··· 58 58 contentContainerStyle, 59 59 ...props 60 60 }: ContentProps) { 61 + const t = useTheme() 61 62 const {footerHeight} = useShellLayout() 62 63 const animatedProps = useAnimatedProps(() => { 63 64 return { ··· 73 74 <Animated.ScrollView 74 75 id="content" 75 76 automaticallyAdjustsScrollIndicatorInsets={false} 77 + indicatorStyle={t.scheme === 'dark' ? 'white' : 'black'} 76 78 // sets the scroll inset to the height of the footer 77 79 animatedProps={animatedProps} 78 80 style={[scrollViewStyles.common, style]}
-1
src/components/StarterPack/ProfileStarterPacks.tsx
··· 136 136 headerOffset={headerOffset} 137 137 progressViewOffset={ios(0)} 138 138 contentContainerStyle={{paddingBottom: headerOffset + bottomBarOffset}} 139 - indicatorStyle={t.name === 'light' ? 'black' : 'white'} 140 139 removeClippedSubviews={true} 141 140 desktopFixedHeight 142 141 onEndReached={onEndReached}
-2
src/view/com/feeds/ProfileFeedgens.tsx
··· 205 205 headerOffset={headerOffset} 206 206 progressViewOffset={ios(0)} 207 207 contentContainerStyle={isMobile && {paddingBottom: headerOffset + 100}} 208 - indicatorStyle={t.name === 'light' ? 'black' : 'white'} 209 208 removeClippedSubviews={true} 210 - // @ts-ignore our .web version only -prf 211 209 desktopFixedHeight 212 210 onEndReached={onEndReached} 213 211 />
-2
src/view/com/lists/ProfileLists.tsx
··· 203 203 contentContainerStyle={ 204 204 isMobile && {paddingBottom: headerOffset + 100} 205 205 } 206 - indicatorStyle={t.name === 'light' ? 'black' : 'white'} 207 206 removeClippedSubviews={true} 208 - // @ts-ignore our .web version only -prf 209 207 desktopFixedHeight 210 208 onEndReached={onEndReached} 211 209 />
-3
src/view/com/posts/PostFeed.tsx
··· 18 18 import {useInitialNumToRender} from '#/lib/hooks/useInitialNumToRender' 19 19 import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' 20 20 import {logEvent} from '#/lib/statsig/statsig' 21 - import {useTheme} from '#/lib/ThemeContext' 22 21 import {logger} from '#/logger' 23 22 import {isIOS, isNative, isWeb} from '#/platform/detection' 24 23 import {listenPostCreated} from '#/state/events' ··· 187 186 initialNumToRender?: number 188 187 isVideoFeed?: boolean 189 188 }): React.ReactNode => { 190 - const theme = useTheme() 191 189 const {_} = useLingui() 192 190 const queryClient = useQueryClient() 193 191 const {currentAccount, hasSession} = useSession() ··· 715 713 minHeight: Dimensions.get('window').height * 1.5, 716 714 }} 717 715 onScrolledDownChange={onScrolledDownChange} 718 - indicatorStyle={theme.colorScheme === 'dark' ? 'white' : 'black'} 719 716 onEndReached={onEndReached} 720 717 onEndReachedThreshold={2} // number of posts left to trigger load more 721 718 removeClippedSubviews={true}
+1
src/view/com/util/List.tsx
··· 164 164 right: 1, 165 165 ...props.scrollIndicatorInsets, 166 166 }} 167 + indicatorStyle={t.scheme === 'dark' ? 'white' : 'black'} 167 168 contentOffset={contentOffset} 168 169 refreshControl={refreshControl} 169 170 onScroll={scrollHandler}