React native – React-Native with Expo: Shows "Cannot find module 'xxx' or its corresponding type declarations." when importing a custom constant view
I created a React Native project with Expo. I have the MainButton.tsx file inside /components folder like this: import { View, Text } from "react-native"; const MainButton = () => { return ( ... ); }; export default MainButton; Now…