I have a react native typescript project where I am using inline require()
statement to import images for example.
<Card.Image source={smallPhoto ? { uri: smallPhoto } : require("../../assets/no-photo.png")} style={styles.cardImage} />
I'm seeing the following message
Unsafe assignment of an `any` value.eslint@typescript-eslint/no-unsafe-assignment
In react native app what would the return type be for a require()
Card.Image
is coming from react-native elements
. How do I avoid this error message?