From 43ffaf311eda4c8507d991270717898634ed8de0 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 26 Feb 2026 12:05:29 +0200 Subject: [PATCH] patch react-native-uitextview with Text.web.js Adds a web-specific Text.web.js that re-exports RN's Text, avoiding the requireNativeComponent import warning on web. Co-Authored-By: Claude Opus 4.6 (1M context) --- ...> react-native-uitextview+1.4.0+001+initial.patch} | 0 ...-native-uitextview+1.4.0+002+add Text.web.js.patch | 11 +++++++++++ 2 files changed, 11 insertions(+) rename patches/{react-native-uitextview+1.4.0.patch => react-native-uitextview+1.4.0+001+initial.patch} (100%) create mode 100644 patches/react-native-uitextview+1.4.0+002+add Text.web.js.patch diff --git a/patches/react-native-uitextview+1.4.0.patch b/patches/react-native-uitextview+1.4.0+001+initial.patch similarity index 100% rename from patches/react-native-uitextview+1.4.0.patch rename to patches/react-native-uitextview+1.4.0+001+initial.patch diff --git a/patches/react-native-uitextview+1.4.0+002+add Text.web.js.patch b/patches/react-native-uitextview+1.4.0+002+add Text.web.js.patch new file mode 100644 index 0000000000..5d96e8fac3 --- /dev/null +++ b/patches/react-native-uitextview+1.4.0+002+add Text.web.js.patch @@ -0,0 +1,11 @@ +diff --git a/node_modules/react-native-uitextview/lib/module/Text.web.js b/node_modules/react-native-uitextview/lib/module/Text.web.js +new file mode 100644 +index 0000000..e80e220 +--- /dev/null ++++ b/node_modules/react-native-uitextview/lib/module/Text.web.js +@@ -0,0 +1,5 @@ ++import { Text as RNText } from 'react-native'; ++export const RNUITextViewChild = RNText; ++export function UITextView(props) { ++ return ; ++}