text: import { StatusBar } from 'react-native';
  import {
    createStackNavigator,
    createAppContainer
   } from 'react-navigation';
  
  import Home from '../screens/Home';
  import CurrencyList from '../screens/CurrencyList';
  import Options from '../screens/Options';
  import Themes from '../screens/Themes';
  import i18n from './i18n';
  
  const HomeStack = createStackNavigator(
    {
      Home: {
        screen: Home,
        navigationOptions: {
          header: () => null,
        },
      },
      Options: {
        screen: Options,
        navigationOptions: {
          headerTitle: i18n.t('OPTIONS.OPTIONS'),
        },
      },
      Themes: {
        screen: Themes,
        navigationOptions: {
          headerTitle: i18n.t('THEMES.THEMES'),
        },
      },
    },
    {
      headerMode: 'screen',
    },
  );
  
  const CurrencyListStack = createStackNavigator({
    CurrencyList: {
      screen: CurrencyList,
      navigationOptions: ({ navigation }) => ({
        headerTitle: navigation.state.params.title,
      }),
    },
  });
  
  const RootStack = createStackNavigator({
      Home: {
        screen: HomeStack,
      },
      CurrencyList: {
        screen: CurrencyListStack,
      },
    },
    {
      mode: 'modal',
      headerMode: 'none',
      cardStyle: { paddingTop: StatusBar.currentHeight },
    },
  );
  
  const App = createAppContainer(RootStack);
  export default App;
  