RN: Revise $FlowFixMe in Text

Reviewed By: TheSavior

Differential Revision: D7987519

fbshipit-source-id: 01c389ab7c277ec8423c137e61bb94a0d3ba4669
This commit is contained in:
Tim Yung 2018-05-14 17:36:36 -07:00 committed by Facebook Github Bot
parent c017dcb0f2
commit 6042592cf4
1 changed files with 1 additions and 3 deletions

View File

@ -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}>