Bluesky app fork with some witchin' additions 馃挮
at readme-update 35 lines 1.1 kB view raw
1import {forwardRef} from 'react' 2import {type FlatListComponent} from 'react-native' 3import {View, type ViewProps} from 'react-native' 4import Animated from 'react-native-reanimated' 5import {type FlatListPropsWithLayout} from 'react-native-reanimated' 6 7// If you explode these into functions, don't forget to forwardRef! 8 9/** 10 * Avoid using `FlatList_INTERNAL` and use `List` where possible. 11 * The types are a bit wrong on `FlatList_INTERNAL` 12 */ 13export const FlatList_INTERNAL = Animated.FlatList 14export type FlatList_INTERNAL<ItemT = any> = Omit< 15 FlatListComponent<ItemT, FlatListPropsWithLayout<ItemT>>, 16 'CellRendererComponent' 17> 18 19/** 20 * @deprecated use `Layout` components 21 */ 22export const ScrollView = Animated.ScrollView 23export type ScrollView = typeof Animated.ScrollView 24 25/** 26 * @deprecated use `Layout` components 27 */ 28export const CenteredView = forwardRef< 29 View, 30 React.PropsWithChildren< 31 ViewProps & {sideBorders?: boolean; topBorder?: boolean} 32 > 33>(function CenteredView(props, ref) { 34 return <View ref={ref} {...props} /> 35})