Skip to content

Commit 07d60d7

Browse files
authored
Merge pull request #18 from blazejkustra/fix/ref-type
[RN 0.79] Fix ref type to comply with React 19
2 parents da50d2c + fc3b32f commit 07d60d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type CustomTextInputProps = Omit<TextInputProps, 'style' | 'value' | 'ref' | 'ed
5858
// 'testID' is also used, but can be overwritten safely
5959

6060
type CustomPickerProps = Omit<PickerProps, 'onValueChange' | 'selectedValue'> & {
61-
ref?: React.RefObject<Picker>;
61+
ref?: React.Ref<Picker>;
6262
};
6363
// 'style' and 'enabled' are also used, but only in headless or native Android mode
6464
// 'testID' is also used, but can be overwritten safely

0 commit comments

Comments
 (0)