Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.

Commit 64d0ffa

Browse files
authored
typescript 'No overload matches' fix
No overload matches this call. Overload 1 of 2, '(props: Readonly<ReactNativePickerModuleProps>): ReactNativePickerModule', gave the following error. Type 'RefObject<ReactNativePickerModule>' is missing the following properties from type 'any[]': length, pop, push, concat, and 26 more. Overload 2 of 2, '(props: ReactNativePickerModuleProps, context?: any): ReactNativePickerModule', gave the following error. Type 'RefObject<ReactNativePickerModule>' is not assignable to type 'any[]'.
1 parent 1a00ed6 commit 64d0ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react-native-picker-module.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface ReactNativePickerModuleProps {
99
value?: string
1010
items: string[]
1111
title?: string
12-
pickerRef: any[]
12+
pickerRef: React.RefObject<ReactNativePickerModule>
1313
onValueChange: (value: string) => void
1414
onCancel?: () => void
1515
cancelButton?: string

0 commit comments

Comments
 (0)