about summary refs log tree commit diff
path: root/src/view/com/util/Views.jsx
blob: 75f2b5081452a2917c2ce22b195bc05d8d53ad32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 gate = useGate()
  return (
    <Animated.ScrollView
      {...props}
      showsVerticalScrollIndicator={!gate('hide_vertical_scroll_indicators')}
    />
  )
}