Skip to content

Type Error: error TS2322 react-native-infinite-pager/src/index.tsx #34

@FlandiaYingman

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions