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 -1
View File
@@ -60,7 +60,7 @@ function GifPickerBody({
control: Dialog.DialogControlProps
onSelectGif: (gif: Gif) => void
}) {
const textInputRef = useRef<TextInput>(null)
const textInputRef = useRef<React.ComponentRef<typeof TextInput>>(null)
const listRef = useRef<ListMethods>(null)
const [rawSearch, setRawSearch] = useState('')
const [activeCategory, setActiveCategory] = useState<string>('trending')
@@ -89,7 +89,7 @@ export const GifPickerGrid = forwardRef<ListMethods, Props>(
onRetry={fetchNextPage}
style={{borderTopWidth: 0}}
/>
) : null
) : undefined
}
/>
)
@@ -15,7 +15,7 @@ export function GifPickerHeader({
onEscape,
canClear,
}: {
inputRef: Ref<TextInput>
inputRef: Ref<React.ComponentRef<typeof TextInput>>
onChangeText: (text: string) => void
onClear: () => void
onEscape: () => void
+1 -1
View File
@@ -43,7 +43,7 @@ function useWebOnlyDebugLiveEventPreferences() {
useEffect(() => {
if (env.IS_DEV && IS_WEB && typeof window !== 'undefined') {
// @ts-ignore
// @ts-expect-error
window.__updateLiveEventPreferences = async (
action: LiveEventPreferencesAction,
) => {