import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View,
  NavigatorIOS,
} from 'react-native';

import I18n from 'react-native-i18n'

I18n.fallbacks = true;

I18n.translations = {
  en: {
    login: 'Login',
    enter: 'Enter',
    register: 'Register',
    home: 'Home',
    username: 'Username',
    password: 'Password',
    name: 'Name',
    location: 'Location',
    bio: 'Bio',
    skills: 'Skills/Expertise',
    contactInformation: 'Contact Information',
    resourceRequest: 'Resource Request',
    seeking: 'Opportunities Seeking',
    search: 'Search',
    story: 'Story',
    stories: 'Stories',
    message: 'Message',
    messages: 'Messages',
    profile: 'Profile',
  },
  ar: {
    login: 'دخول',
    username: 'اسم المستخدم',
    password: 'كلمه السر',
    name: 'اسم',
    enter: 'أدخل',
    register: 'تسجيل',
    home: 'منزل',
    bio: 'سيرة',
    location: 'موقع',
    contactInformation: 'معلومات الاتصال',
    skills: 'مهارات',
    seeking: 'فرص تسعى',
    resourceRequest: 'الموارد أريد',
    search: 'بحث',
    story: 'قصة',
    stories: 'قصص',
    profile: 'الملف الشخصي',
    message: 'الرسالة',
    messages: 'رسائل',


  }
}




import Enter from './app/components/enter.js';
// ======= OLD NAV
// import Enter from './app/components/enter.js';
// import Home from './app/components/home.js';
// import Contact from './app/components/contact.js';
// import Login from './app/components/login.js';
// import NewStory from './app/components/newStory.js';
// import Profile from './app/components/profile.js';
// import Register from './app/components/register.js';
// import Story from './app/components/story.js';
// import UserStories from './app/components/userStories.js';
// import UserMessages from './app/components/userMessages.js';
// import Message from './app/components/message.js';
// import Nav from './app/components/nav.js'



class simul extends Component {
  render() {
    return (
      <NavigatorIOS
        initialRoute={{
          component: Enter,
          title: 'Simul',
        }}
        style={{flex: 1}}
        />
      // ======= OLD NAV
//       <Navigator
//         initialRoute={routes[2]}
//         initialRouteStack={routes}
//         renderScene={(route, navigator) => {
//           if(route.title == 'Enter') {
//            return <Enter title={route.title} />
//           }
//           if(route.title == 'Home') {
//            return <Home title={route.title} />
//           }
//           if(route.title == 'Profile') {
//            return <Profile title={route.title} />
//           }
//           if(route.title == 'UserStories') {
//            return <UserStories title={route.title} />
//           }
//           if(route.title == 'Register') {
//            return <Register title={route.title} />
//           }
//           if(route.title == 'Login') {
//            return <Login title={route.title} />
//           }
//           if(route.title == 'Story') {
//            return <Story title={route.title} />
//           }
//           if(route.title == 'NewStory') {
//            return <NewStory title={route.title} />
//           }
//           if(route.title == 'Contact') {
//            return <Contact title={route.title} />
//           }
//           if(route.title == 'UserMessages') {
//            return <UserMessages title={route.title} />
//           }
//           if(route.title == 'Message') {
//            return <Message title={route.title} />
//           }
//          if(route.title == 'Nav'){
//            return <Nav title={route.title} />
//          }
//
    );
  }
}

AppRegistry.registerComponent('simul', () => simul);

@@ -1184,20 +1184,15 @@
 %D9%84',%0A
-%0A%0A
   %7D%0A%7D%0A%0A
-%0A%0A%0A
 impo
@@ -1238,2383 +1238,212 @@
 s';%0A
-// ======= OLD NAV%0A// import Enter from './app/components/enter.js';%0A// import Home from './app/components/home.js';%0A// import Contact from './app/components/contact.js';%0A// import Login from './app/components/login.js';%0A// import NewStory from './app/components/newStory.js';%0A// import Profile from './app/components/profile.js';%0A// import Register from './app/components/register.js';%0A// import Story from './app/components/story.js';%0A// import UserStories from './app/components/userStories.js';%0A// import UserMessages from './app/components/userMessages.js';%0A// import Message from './app/components/message.js';%0A// import Nav from './app/components/nav.js'%0A%0A%0A%0Aclass simul extends Component %7B%0A  render() %7B%0A    return (%0A      %3CNavigatorIOS%0A        initialRoute=%7B%7B%0A          component: Enter,%0A          title: 'Simul',%0A        %7D%7D%0A        style=%7B%7Bflex: 1%7D%7D%0A        /%3E%0A      // ======= OLD NAV%0A//       %3CNavigator%0A//         initialRoute=%7Broutes%5B2%5D%7D%0A//         initialRouteStack=%7Broutes%7D%0A//         renderScene=%7B(route, navigator) =%3E %7B%0A//           if(route.title == 'Enter') %7B%0A//            return %3CEnter title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'Home') %7B%0A//            return %3CHome title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'Profile') %7B%0A//            return %3CProfile title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'UserStories') %7B%0A//            return %3CUserStories title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'Register') %7B%0A//            return %3CRegister title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'Login') %7B%0A//            return %3CLogin title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'Story') %7B%0A//            return %3CStory title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'NewStory') %7B%0A//            return %3CNewStory title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'Contact') %7B%0A//            return %3CContact title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'UserMessages') %7B%0A//            return %3CUserMessages title=%7Broute.title%7D /%3E%0A//           %7D%0A//           if(route.title == 'Message') %7B%0A//            return %3CMessage title=%7Broute.title%7D /%3E%0A//           %7D%0A//          if(route.title == 'Nav')%7B%0A//            return %3CNav title=%7Broute.title%7D /%3E%0A//          %7D%0A//
+%0Aclass simul extends Component %7B%0A  render() %7B%0A    return (%0A      %3CNavigatorIOS%0A        initialRoute=%7B%7B%0A          component: Enter,%0A          title: 'Simul',%0A        %7D%7D%0A        style=%7B%7Bflex: 1%7D%7D%0A        /%3E
 %0A   

Clean up unnecessary comments/spacing in index