Description
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!