After i convert my project in typescript showing me following error Module '"./node_modules/react-native"' has no exported member 'View'.
import React from 'react';
import {StyleSheet,View,Text} from 'react-native';
export default function App() {
return (
<View style={{ flex: 1 }}>
<Text>Welcome</Text>
</View>
);
}
node_modules foldernpm install @types/react @types/react-nativeDelete node_modules folder and run npm install or yarn again.
If it not solve this problem, try to run npm install @types/react @types/react-native or yarn add @types/react @types/react-native
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With