c3821fdc31
* remove vertical scrollbars * add to a few missing lists * gate this change * use `hide_vertical_scroll_indicators` * fix gate lint * fix bool
24 lines
535 B
React
24 lines
535 B
React
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 function CenteredView(props) {
|
|
return <View {...props} />
|
|
}
|
|
|
|
export function ScrollView(props) {
|
|
const showsVerticalScrollIndicator = !useGate(
|
|
'hide_vertical_scroll_indicators',
|
|
)
|
|
|
|
return (
|
|
<Animated.ScrollView
|
|
{...props}
|
|
showsVerticalScrollIndicator={showsVerticalScrollIndicator}
|
|
/>
|
|
)
|
|
}
|