ForwardRef

 
import React, { forwardRef, LegacyRef } from 'react'; interface Props { 컴포넌트 프롭 정의 } type Ref = LegacyRef<FlatList<[string, BodyConditionObject]>> | undefined; export const ExampleComponent = forwardRef( ( { 컴포넌트 프롭 }: Props, ref: Ref, ) => { return ( <> <FlatList ...블라블라 ref={ref} /> </> ) }