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
+2 -2
View File
@@ -1160,10 +1160,10 @@ function MockAccountScreen({
screenDescription={_(msg`profile`)}
modui={moderation.ui('profileView')}>
<ProfileHeaderStandard
// @ts-ignore ProfileViewBasic is close enough -prf
// @ts-expect-error ProfileViewBasic is close enough -prf
profile={profile}
moderationOpts={moderationOpts}
// @ts-ignore ProfileViewBasic is close enough -esb
// @ts-expect-error ProfileViewBasic is close enough -esb
descriptionRT={new RichText({text: profile.description as string})}
/>
</ScreenHider>
+1 -1
View File
@@ -223,7 +223,7 @@ function HomeScreenReady({
{...props}
testID="homeScreenFeedTabs"
onPressSelected={onPressSelected}
// @ts-ignore
// @ts-expect-error
feeds={[{displayName: 'Following'}, {displayName: 'Discover'}]}
/>
)
+1 -1
View File
@@ -262,7 +262,7 @@ function NotificationsTab({
ListHeaderComponent={
filter === 'mentions' ? (
<DisabledNotificationsWarning active={isFocusedAndActive} />
) : null
) : undefined
}
/>
{(isScrolledDown || hasNew) && (
+1 -1
View File
@@ -649,7 +649,7 @@ const styles = StyleSheet.create({
container: {
flexDirection: 'column',
height: '100%',
// @ts-ignore Web-only.
// @ts-expect-error Web-only.
overflowAnchor: 'none', // Fixes jumps when switching tabs while scrolled down.
},
loading: {
+1 -1
View File
@@ -34,7 +34,7 @@ export function Forms() {
const [phoneNumber, setPhoneNumber] = useState('')
const [lang, setLang] = useState('en')
const inputRef = useRef<TextInput>(null)
const inputRef = useRef<React.ComponentRef<typeof TextInput>>(null)
return (
<View style={[a.gap_4xl, a.align_start]}>