diff options
author | Hailey <me@haileyok.com> | 2024-04-12 15:22:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 15:22:09 -0700 |
commit | c3821fdc311fe7ddebede427715892d3a1e53716 (patch) | |
tree | be783cae52ddfeba56c06ceba08773170ca5afe9 /src/view/com/util/Views.jsx | |
parent | 6218eb0eeac2ccab33c56fda97a52837edd58694 (diff) | |
download | voidsky-c3821fdc311fe7ddebede427715892d3a1e53716.tar.zst |
Remove vertical scrollbars from views on native (#3429)
* remove vertical scrollbars * add to a few missing lists * gate this change * use `hide_vertical_scroll_indicators` * fix gate lint * fix bool
Diffstat (limited to 'src/view/com/util/Views.jsx')
-rw-r--r-- | src/view/com/util/Views.jsx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/view/com/util/Views.jsx b/src/view/com/util/Views.jsx index 7d6120583..6850f42a4 100644 --- a/src/view/com/util/Views.jsx +++ b/src/view/com/util/Views.jsx @@ -2,8 +2,22 @@ import React from 'react' import {View} from 'react-native' import Animated from 'react-native-reanimated' +import {useGate} from 'lib/statsig/statsig' + export const FlatList_INTERNAL = Animated.FlatList -export const ScrollView = Animated.ScrollView export function CenteredView(props) { return <View {...props} /> } + +export function ScrollView(props) { + const showsVerticalScrollIndicator = !useGate( + 'hide_vertical_scroll_indicators', + ) + + return ( + <Animated.ScrollView + {...props} + showsVerticalScrollIndicator={showsVerticalScrollIndicator} + /> + ) +} |