TextAncestor.js 420 B

123456789101112131415161718
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @flow strict
  8. * @format
  9. */
  10. 'use strict';
  11. const React = require('react');
  12. /**
  13. * Whether the current element is the descendant of a <Text> element.
  14. */
  15. module.exports = (React.createContext(false): React$Context<$FlowFixMe>);