Bump @types/react to ^18 and adjust types (#889)

This commit is contained in:
Logan Rosen 2023-06-22 12:40:32 -04:00 committed by GitHub
parent 180697b66b
commit 9b19a95e63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 65 additions and 29 deletions

View file

@ -1,5 +1,6 @@
import React, {useCallback, useEffect, useMemo, useState} from 'react'
import {
AccessibilityActionEvent,
ActivityIndicator,
Linking,
StyleProp,
@ -223,7 +224,7 @@ const PostLoaded = observer(
)
const onAccessibilityAction = useCallback(
event => {
(event: AccessibilityActionEvent) => {
switch (event.nativeEvent.actionName) {
case 'like':
onPressToggleLike()