recipes-app-react-native icon indicating copy to clipboard operation
recipes-app-react-native copied to clipboard

ReferenceError: AppContainer is not defined

Open jp-jsr-group opened this issue 5 years ago • 1 comments

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

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

jp-jsr-group avatar Apr 10 '20 07:04 jp-jsr-group

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

piscespieces avatar Apr 19 '20 22:04 piscespieces