node_modules/react-native-infinite-pager/src/index.tsx:538:17 - error TS2322: Type 'InfinitePagerPageComponent | MemoExoticComponent<InfinitePagerPageComponent> | undefined' is not assignable to type 'InfinitePagerPageComponent | undefined'.
Type 'MemoExoticComponent<InfinitePagerPageComponent>' is not assignable to type 'InfinitePagerPageComponent | undefined'.
Type 'MemoExoticComponent<InfinitePagerPageComponent>' is not assignable to type 'InfinitePagerPageComponent'.
Type 'ReactNode' is not assignable to type 'Element | null'.
Type 'undefined' is not assignable to type 'Element | null'.
538 PageComponent={PageComponent}
~~~~~~~~~~~~~
node_modules/react-native-infinite-pager/src/index.tsx:560:3
560 PageComponent?: InfinitePagerPageComponent;
~~~~~~~~~~~~~
The expected type comes from property 'PageComponent' which is declared here on type 'IntrinsicAttributes & PageWrapperProps'