|
1 | 1 | import React, { Component, ReactElement, ElementRef } from 'react';
|
2 |
| -import { Animated, GestureResponderEvent, ImageSourcePropType, ImageStyle, StyleProp, TextStyle, ViewStyle, LayoutChangeEvent, View as ViewRN } from 'react-native'; |
| 2 | +import { Animated, GestureResponderEvent, ImageSourcePropType, ImageStyle, StyleProp, TextStyle, ViewStyle, LayoutChangeEvent, View as RNView } from 'react-native'; |
3 | 3 | declare enum TARGET_POSITIONS {
|
4 | 4 | LEFT = "left",
|
5 | 5 | RIGHT = "right",
|
@@ -111,17 +111,17 @@ declare class Hint extends Component<HintProps, HintState> {
|
111 | 111 | position: HintPositions;
|
112 | 112 | };
|
113 | 113 | static positions: typeof HintPositions;
|
114 |
| - targetRef: ElementRef<typeof ViewRN> | null; |
115 |
| - hintRef: ElementRef<typeof ViewRN> | null; |
| 114 | + targetRef: ElementRef<typeof RNView> | null; |
| 115 | + hintRef: ElementRef<typeof RNView> | null; |
116 | 116 | state: {
|
117 | 117 | targetLayoutInWindow: undefined;
|
118 | 118 | targetLayout: HintTargetFrame | undefined;
|
119 | 119 | };
|
120 | 120 | visibleAnimated: Animated.Value;
|
121 | 121 | componentDidUpdate(prevProps: HintProps): void;
|
122 | 122 | focusAccessibilityOnHint: () => void;
|
123 |
| - setTargetRef: (ref: ElementRef<typeof ViewRN>) => void; |
124 |
| - setHintRef: (ref: ElementRef<typeof ViewRN>) => void; |
| 123 | + setTargetRef: (ref: ElementRef<typeof RNView>) => void; |
| 124 | + setHintRef: (ref: ElementRef<typeof RNView>) => void; |
125 | 125 | onTargetLayout: ({ nativeEvent: { layout } }: LayoutChangeEvent) => void;
|
126 | 126 | getAccessibilityInfo(): {
|
127 | 127 | accessible: boolean;
|
|
0 commit comments