Module '"./node_modules/react-native"' has no exported member 'View'

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>
 );
}

134 thoughts on “Module '"./node_modules/react-native"' has no exported member 'View'”

Leave a Comment