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 -1
View File
@@ -4,7 +4,7 @@ import {
type TextProps as RNTextProps,
type TextStyle,
} from 'react-native'
import {UITextView} from 'react-native-uitextview'
import {UITextView} from '@bsky.app/react-native-uitextview'
import createEmojiRegex from 'emoji-regex'
import {type Alf, applyFonts, atoms, flatten} from '#/alf'
+1 -1
View File
@@ -1,4 +1,4 @@
import {UITextView} from 'react-native-uitextview'
import {UITextView} from '@bsky.app/react-native-uitextview'
import {logger} from '#/logger'
import {atoms as a, type TextStyleProp, useAlf, useTheme, web} from '#/alf'
@@ -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.`,
)
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
import {useMemo} from 'react'
import {StyleSheet, type TextProps} from 'react-native'
import {UITextView} from 'react-native-uitextview'
import {UITextView} from '@bsky.app/react-native-uitextview'
import {lh, s} from '#/lib/styles'
import {type TypographyVariant, useTheme} from '#/lib/ThemeContext'