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) <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-02-26 12:05:29 +02:00
parent db9c2a1596
commit 43ffaf311e
2 changed files with 11 additions and 0 deletions
@@ -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 <RNText {...props} />;
+}