Update react-native-uitextview (#11264)

This commit is contained in:
Samuel Newman
2026-07-24 17:40:46 +03:00
committed by GitHub
parent 98e135f489
commit 19b0d89313
7 changed files with 18 additions and 45 deletions
@@ -1,17 +0,0 @@
/*
* Web stub for `react-native/Libraries/Utilities/codegenNativeComponent`.
*
* Deep `react-native/*` imports bypass the `react-native$ -> react-native-web`
* alias and drag RN core into the web bundle, where its platform-extension
* modules (e.g. Libraries/Utilities/Platform.js) resolve to themselves and
* throw a TDZ error at startup. Packages that import codegen specs
* unconditionally (react-native-uitextview) guard the native component behind
* a `Platform.OS === 'ios'` check, so nothing ever renders this on web.
*/
module.exports = function codegenNativeComponent(componentName) {
return function UnimplementedNativeComponent() {
throw new Error(
`Native component "${componentName}" was rendered on web. It has no web implementation.`,
)
}
}