Upgrade @types/react to 19 and run codemod (attempt 2) (#8918)

* update dependencies

* rm `import type React from 'react'`

* run codemods

* patch discord types

* update types/react-dom

* Update yarn.lock
This commit is contained in:
Samuel Newman
2025-09-09 18:09:10 +03:00
committed by GitHub
parent d496a22352
commit 3e2c181c40
73 changed files with 157 additions and 143 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import React, {type ComponentProps} from 'react'
import React, {type ComponentProps, type JSX} from 'react'
import {Linking, ScrollView, TouchableOpacity, View} from 'react-native'
import {useSafeAreaInsets} from 'react-native-safe-area-context'
import {msg, Plural, plural, Trans} from '@lingui/macro'
+1 -1
View File
@@ -1,4 +1,4 @@
import {useCallback} from 'react'
import {type JSX, useCallback} from 'react'
import {type GestureResponderEvent, View} from 'react-native'
import Animated from 'react-native-reanimated'
import {useSafeAreaInsets} from 'react-native-safe-area-context'
+1 -1
View File
@@ -230,7 +230,7 @@ export function BottomBarWeb() {
}
const NavItem: React.FC<{
children: (props: {isActive: boolean}) => React.ReactChild
children: (props: {isActive: boolean}) => React.ReactNode
href: string
routeName: string
hasNew?: boolean
+1 -1
View File
@@ -1,4 +1,4 @@
import {useCallback, useMemo, useState} from 'react'
import {type JSX, useCallback, useMemo, useState} from 'react'
import {StyleSheet, View} from 'react-native'
import {type AppBskyActorDefs} from '@atproto/api'
import {msg, plural, Trans} from '@lingui/macro'