Unable to solve the problem using React Native + Android module

It seems that I am constantly getting an error similar to the one below when I reach this specific point when working with React Native apps.

enter image description here

I create a folder /Appwith a file AppContainer.js. I create a functional component in app/index.js(application and application are two different directories) that displays the component AppContainer. app/index.jsas follows.

import React from 'react'
import { AppContainer } from '~/containers'

export default function SnapshelfApp (props) {
    return (
        <AppContainer />
    )
}

I export AppContainertocontainers/index.js

export AppContainer from './App/AppContainer'

It seems that always around this moment I get an error message saying that he cannot solve this module and gives me some strange route that is not there.

iOS , react-native start --reset-cache, . Android, .

babel-root-import, babelrc , .

. , /App.

enter image description here

?

+4

Source: https://habr.com/ru/post/1668576/


All Articles