Skip to content

7.6.1 Property 'InputComponent' is missing in type #248

Closed
@jayan2019

Description

@jayan2019

No overload matches this call. Overload 1 of 2, '(props: { InputComponent: ElementType; } & OmitStyle<any> & BaseProps): ReactElement<any, string | JSXElementConstructor<any>>', gave the following error. Property 'InputComponent' is missing in type '{ value: any; cellCount: number; keyboardType: string; textContentType: string; onChangeText: (text: string) => Promise<void>; textInputStyle: { fontSize: number; height: number; }; renderCell: ({ index, symbol, isFocused }: RenderCellOptions) => Element; onPressOut: (event: GestureResponderEvent) => void; ref: RefO...' but required in type '{ InputComponent: ElementType; }'. Overload 2 of 2, '(props: Props): ReactElement<any, string | JSXElementConstructor<any>>', gave the following error. Type 'RefObject<TextInput | null>' is not assignable to type 'LegacyRef<TextInput> | undefined'. Type 'RefObject<TextInput | null>' is not assignable to type 'RefObject<TextInput>'. Type 'TextInput | null' is not assignable to type 'TextInput'. Type 'null' is not assignable to type 'TextInput'.ts(2769)

No errors in render, but shows type error in code only!

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