You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export declare const FlatList: React.ForwardRefExoticComponent<FlatListProps<unknown> & React.RefAttributes<unknown>>; in node_modules/react-native-gesture-handler/lib/typescript/components/GestureComponents.d.ts
I wonder how would one create the React.useRef object for a flatlist component, and how to specify item types for a flatlist? bc now the item prop within renderItem shows as unknown. Many thanks in advance!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi there!
I use the FlatList component in rngh:
https://github.com/lovegaoshi/azusa-player-mobile/blob/e441adf4863b0097c184058fd02f66defe3a28a4/src/components/setting/appearances/SkinSettings.tsx#L259
from the 3.6.1 update/ts rework I've noticed 1. the type of components is no longer exported; and 2. now flatlist has an unknown type for items instead of T:
export declare const FlatList: React.ForwardRefExoticComponent<FlatListProps<unknown> & React.RefAttributes<unknown>>;
in node_modules/react-native-gesture-handler/lib/typescript/components/GestureComponents.d.tsI wonder how would one create the React.useRef object for a flatlist component, and how to specify item types for a flatlist? bc now the item prop within renderItem shows as unknown. Many thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions