Skip to content

Commit 4903b25

Browse files
Changed depracated ElementRef to suggested ComponentRef in GenericPressable/types.ts
1 parent 2f18c04 commit 4903b25

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/components/Pressable/GenericPressable

src/components/Pressable/GenericPressable/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {ElementRef, ForwardedRef, RefObject} from 'react';
1+
import type {ComponentRef, ForwardedRef, RefObject} from 'react';
22
// eslint-disable-next-line no-restricted-imports
33
import type {GestureResponderEvent, HostComponent, PressableStateCallbackType, PressableProps as RNPressableProps, Text as RNText, StyleProp, View, ViewStyle} from 'react-native';
44
import type {ValueOf} from 'type-fest';
@@ -114,7 +114,7 @@ type PressableProps = RNPressableProps &
114114
/**
115115
* Specifies which component should be focused after interacting with this component
116116
*/
117-
nextFocusRef?: ElementRef<HostComponent<unknown>> & RefObject<HTMLOrSVGElement>;
117+
nextFocusRef?: ComponentRef<HostComponent<unknown>> & RefObject<HTMLOrSVGElement>;
118118

119119
/**
120120
* Specifies the accessibility label for the component

0 commit comments

Comments
 (0)