Enable React Native strict TypeScript API (#11459)

This commit is contained in:
Samuel Newman
2026-08-25 09:40:14 +03:00
committed by GitHub
parent 5f3d24efab
commit f87fdd2ea2
149 changed files with 506 additions and 623 deletions
@@ -1,9 +1,9 @@
import {type ImageSourcePropType} from 'react-native'
import {type ImageSource} from 'expo-image'
import type * as DynamicAppIcon from '@bsky.app/expo-dynamic-app-icon'
export type AppIconSet = {
id: DynamicAppIcon.IconName
name: string
iosImage: () => ImageSourcePropType
androidImage: () => ImageSourcePropType
iosImage: () => ImageSource
androidImage: () => ImageSource
}
@@ -128,7 +128,7 @@ export function ActivityNotificationSettingsScreen({}: Props) {
onEndReached={onEndReached}
onEndReachedThreshold={4}
ListEmptyComponent={
error ? null : (
error ? undefined : (
<View style={[a.px_xl, a.py_md]}>
{!isPending ? (
<Admonition.Outer type="tip">
@@ -73,7 +73,7 @@ function DeleteAccountDialogInner({
control: DialogOuterProps['control']
deactivateDialogControl: DialogOuterProps['control']
}) {
const passwordRef = useRef<TextInput | null>(null)
const passwordRef = useRef<React.ComponentRef<typeof TextInput> | null>(null)
const t = useTheme()
const {_} = useLingui()
const cleanError = useCleanError()