Enable React Native strict TypeScript API (#11459)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user