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
This commit is contained in:
parent
6218eb0eea
commit
c3821fdc31
7 changed files with 88 additions and 51 deletions
|
@ -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}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue