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