Permalink
Browse files

RN: Revise $FlowFixMe in Text

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 6042592cf46787f089e76b661376705380607207
Showing with 1 addition and 3 deletions.
  1. +1 −3 Libraries/Text/Text.js
View
@@ -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 = {|
@@ -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}>

0 comments on commit 6042592

Please sign in to comment.