RN: Revise $FlowFixMe in Text
Reviewed By: TheSavior Differential Revision: D7987519 fbshipit-source-id: 01c389ab7c277ec8423c137e61bb94a0d3ba4669
This commit is contained in:
parent
c017dcb0f2
commit
6042592cf4
|
@ -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}>
|
||||
|
|
Loading…
Reference in New Issue