Fix scrolling for labeler profiles (#4286)
This commit is contained in:
@@ -1,12 +1,7 @@
|
|||||||
import React from 'react'
|
|
||||||
import {View} from 'react-native'
|
import {View} from 'react-native'
|
||||||
import Animated from 'react-native-reanimated'
|
import Animated from 'react-native-reanimated'
|
||||||
|
|
||||||
|
// If you explode these into functions, don't forget to forwardRef!
|
||||||
export const FlatList_INTERNAL = Animated.FlatList
|
export const FlatList_INTERNAL = Animated.FlatList
|
||||||
export function CenteredView(props) {
|
export const CenteredView = View
|
||||||
return <View {...props} />
|
export const ScrollView = Animated.ScrollView
|
||||||
}
|
|
||||||
|
|
||||||
export function ScrollView(props) {
|
|
||||||
return <Animated.ScrollView {...props} />
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ interface AddedProps {
|
|||||||
desktopFixedHeight?: boolean | number
|
desktopFixedHeight?: boolean | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export function CenteredView({
|
export const CenteredView = React.forwardRef(function CenteredView({
|
||||||
style,
|
style,
|
||||||
sideBorders,
|
sideBorders,
|
||||||
topBorder,
|
topBorder,
|
||||||
@@ -58,7 +58,7 @@ export function CenteredView({
|
|||||||
style = addStyle(style, pal.border)
|
style = addStyle(style, pal.border)
|
||||||
}
|
}
|
||||||
return <View style={style} {...props} />
|
return <View style={style} {...props} />
|
||||||
}
|
})
|
||||||
|
|
||||||
export const FlatList_INTERNAL = React.forwardRef(function FlatListImpl<ItemT>(
|
export const FlatList_INTERNAL = React.forwardRef(function FlatListImpl<ItemT>(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user