have you tried specifying the type on the screen component? e.g.
import { FC } from 'react'
const SignInScreen: FC<any> = () => {
const {height} = useWindowDimensions()
return (
<View style= {styles.root}>
<Image source={Logo} style ={[styles.logo, {height: height * 0.3}]}
resizeMode="contain" />
<CustomInput />
</View>
)
}