We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c017dcb commit 6042592Copy full SHA for 6042592
Libraries/Text/Text.js
@@ -36,8 +36,7 @@ type ResponseHandlers = $ReadOnly<{|
36
37
type Props = $ReadOnly<{
38
...TextProps,
39
- // $FlowFixMe - Typing ReactNativeComponent revealed errors
40
- forwardedRef: ?React.Ref<NativeComponent<TextProps>>,
+ forwardedRef: ?React.Ref<'RCTText' | 'RCTVirtualText'>,
41
}>;
42
43
type State = {|
@@ -140,7 +139,6 @@ class TouchableText extends React.Component<Props, State> {
140
139
<TextAncestor.Consumer>
141
{hasTextAncestor =>
142
hasTextAncestor ? (
143
144
<RCTVirtualText {...props} ref={props.forwardedRef} />
145
) : (
146
<TextAncestor.Provider value={true}>
0 commit comments