instamobile / recipes-app-react-native

Recipes App in React Native

Home Page:https://instamobile.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ReferenceError: AppContainer is not defined

jp-jsr-group opened this issue · comments

After running the app on the browser it shows me this error.

Screen Shot 2020-04-10 at 3 30 31 PM

Hello, @jp-jsr-group

in your AppNavigation.js (located in recipes-app-react-native/src/navigations folder), at the bottom of the file you will find in the line 103 the following line as the log in your browser pointed out:

export default AppContainer = createAppContainer(DrawerStack);

Just change it for:

const AppContainer = createAppContainer(DrawerStack);
export default AppContainer;

This will do the trick, however most likely you'll get other kind of error in your console, but the app will work partially