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:
Dawid Małecki
2025-01-16 01:48:51 -08:00
committed by Facebook GitHub Bot
parent 843582b8b5
commit df9d43f02b
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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;
"
`;