Skip to content

Commit

Permalink
RN: Revise $FlowFixMe in Text
Browse files Browse the repository at this point in the history
Reviewed By: TheSavior

Differential Revision: D7987519

fbshipit-source-id: 01c389ab7c277ec8423c137e61bb94a0d3ba4669
  • Loading branch information
yungsters authored and facebook-github-bot committed May 15, 2018
1 parent c017dcb commit 6042592
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Libraries/Text/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ type ResponseHandlers = $ReadOnly<{|

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

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

0 comments on commit 6042592

Please sign in to comment.