mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
Copy react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67 (upstream software-mansion/enriched-markdown 766fc0e67) into packages/react-native-enriched-markdown, with patches/react-native-enriched-markdown+1.2.0-nightly-20261014-766fc0e67.patch applied. Nothing else changes in this commit; the package is not a workspace yet. Reproduce: npm pack react-native-enriched-markdown@1.2.0-nightly-20261014-766fc0e67 tar xzf react-native-enriched-markdown-*.tgz mkdir -p t/node_modules && mv package t/node_modules/react-native-enriched-markdown (cd t && git init -q && git apply ../patches/react-native-enriched-markdown+*.patch) diff -r t/node_modules/react-native-enriched-markdown packages/react-native-enriched-markdown The diff is empty.
27 lines
1.2 KiB
JavaScript
27 lines
1.2 KiB
JavaScript
"use strict";
|
|
|
|
/**
|
|
* Bridges EnrichedMarkdownTextInput into React Native's TextInputState focus
|
|
* registry so it participates in RN's keyboard-dismiss behavior (issue #577).
|
|
*
|
|
* Registering a non-TextInput host component is safe: TextInputState's
|
|
* focusTextInput and blurTextInput dispatch the built-in TextInput's "focus"
|
|
* and "blur" commands at the given instance, and Fabric command dispatch is
|
|
* name-based — it works as long as the component ships commands with those
|
|
* names, which ours does.
|
|
*
|
|
* A deep import is required because the public TextInput.State API lacks the
|
|
* registerInput/focusInput/blurInput bookkeeping functions.
|
|
*/
|
|
|
|
/**
|
|
* The internal module's export shape has changed across RN versions: newer
|
|
* versions use `export default` (surfacing as `.default` after Metro's CJS
|
|
* transform) while older ones assigned `module.exports` directly. A raw
|
|
* require bypasses Babel's import interop, so both shapes are handled here.
|
|
*/
|
|
const TextInputStateModuleImpl =
|
|
// eslint-disable-next-line @react-native/no-deep-imports
|
|
require('react-native/Libraries/Components/TextInput/TextInputState');
|
|
export const TextInputState = TextInputStateModuleImpl.default ?? TextInputStateModuleImpl;
|
|
//# sourceMappingURL=textInputState.js.map
|