import { createStackNavigator } from 'react-navigation';

import { PAGES } from '../pages';

const routes = {};
// Add all pages to navigation routes.
Object.entries(PAGES).forEach(([routeName, page]) => {
  routes[routeName] = { screen: page };
});

const config = {
  initialRouteName: 'root',
  headerMode: 'none',
};

export default createStackNavigator(routes, config);

@@ -47,16 +47,22 @@
 vigation
+-stack
 ';%0A%0Aimpo

Add react-navigation changes