Нет описания

homeStack.js 1009B

12345678910111213141516171819202122232425262728293031323334353637
  1. import * as React from 'react';
  2. import { createStackNavigator } from "react-navigation-stack";
  3. import { createAppContainer } from "react-navigation";
  4. import About from '../screens/about'
  5. import Gallery from '../screens/gallery'
  6. import Header from '../shared/header';
  7. const screens = {
  8. About: {
  9. screen: About,
  10. navigationOptions: ({navigation}) => {
  11. return {
  12. headerTitle: () => <Header navigation={navigation}/>,
  13. }
  14. }
  15. },
  16. Gallery: {
  17. screen: Gallery,
  18. navigationOptions: ({navigation}) => {
  19. return {
  20. headerTitle: () => <Header navigation={navigation}/>,
  21. }
  22. }
  23. },
  24. Calendar: {
  25. screen: Calendar,
  26. navigationOptions: ({navigation}) => {
  27. return {
  28. headerTitle: () => <Header navigation={navigation}/>,
  29. }
  30. }
  31. },
  32. }
  33. const HomeStack = createStackNavigator(screens);
  34. export default createAppContainer(HomeStack);