Skip to content

Commit 6042592

Browse files
yungstersfacebook-github-bot
authored andcommitted
RN: Revise $FlowFixMe in Text
Reviewed By: TheSavior Differential Revision: D7987519 fbshipit-source-id: 01c389ab7c277ec8423c137e61bb94a0d3ba4669
1 parent c017dcb commit 6042592

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Libraries/Text/Text.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ type ResponseHandlers = $ReadOnly<{|
3636

3737
type Props = $ReadOnly<{
3838
...TextProps,
39-
// $FlowFixMe - Typing ReactNativeComponent revealed errors
40-
forwardedRef: ?React.Ref<NativeComponent<TextProps>>,
39+
forwardedRef: ?React.Ref<'RCTText' | 'RCTVirtualText'>,
4140
}>;
4241

4342
type State = {|
@@ -140,7 +139,6 @@ class TouchableText extends React.Component<Props, State> {
140139
<TextAncestor.Consumer>
141140
{hasTextAncestor =>
142141
hasTextAncestor ? (
143-
// $FlowFixMe - Typing ReactNativeComponent revealed errors
144142
<RCTVirtualText {...props} ref={props.forwardedRef} />
145143
) : (
146144
<TextAncestor.Provider value={true}>

0 commit comments

Comments
 (0)