The full error message is: None of these files exist:
- ..\src\components\Main.jsx(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
- ..\src\components\Main.jsx\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
I have the file Main.jsx in ./src/components/Main.jsx but it doesnt detect it
The react native version is 0.71.3 The react version is 18.2.0 The node version is 18.14.2
I have tried using backwards slash but htat didnt solve the problem.
App.js
import React from 'react'
import Main from './src/components/Main.jsx'
export default function App() {
return <Main />
}
Main.jsx
import React from 'react'
import { Text, View } from 'react-native'
const Main = () =>{
return (
<View>
<Text>Hola Mundo</Text>
</View>
)
}
export default Main