Fix scrolling for labeler profiles (#4286)

zio/stable
dan 2024-05-30 15:57:45 +01:00 committed by GitHub
parent 8de028387c
commit 9d4622e713
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 10 deletions

View File

@ -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

View File

@ -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>(
{