mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Replace $FlowFixMe in TextAncestor (#48704)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48704 Changelog: [General][Changed] - Improved types in TextAncestor Reviewed By: fabriziocucci Differential Revision: D68213115 fbshipit-source-id: d71a2703799b518eb1adb70fb5792165b5956868
This commit is contained in:
committed by
Facebook GitHub Bot
parent
843582b8b5
commit
df9d43f02b
+1
-2
@@ -15,8 +15,7 @@ const React = require('react');
|
||||
/**
|
||||
* Whether the current element is the descendant of a <Text> element.
|
||||
*/
|
||||
const TextAncestorContext: React$Context<$FlowFixMe> =
|
||||
React.createContext(false);
|
||||
const TextAncestorContext: React$Context<boolean> = React.createContext(false);
|
||||
if (__DEV__) {
|
||||
TextAncestorContext.displayName = 'TextAncestorContext';
|
||||
}
|
||||
|
||||
@@ -8460,7 +8460,7 @@ declare module.exports: Text;
|
||||
`;
|
||||
|
||||
exports[`public API should not change unintentionally Libraries/Text/TextAncestor.js 1`] = `
|
||||
"declare const TextAncestorContext: React$Context<$FlowFixMe>;
|
||||
"declare const TextAncestorContext: React$Context<boolean>;
|
||||
declare module.exports: TextAncestorContext;
|
||||
"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user