Index

React Native

  1. Install Android Studio
  2. Introduction
  3. Navigation
    1. StackNavigator
    2. Login
    3. DrawerNavigator
    4. Custom Drawer
    5. Image
  4. Formik and Apollo Client
  5. Image Upload
  6. Alert
  7. Keyboard Avoiding View

DrawerNavigator

import React, { Component } from 'react';
import { createDrawerNavigator } from 'react-navigation-drawer';
import { createAppContainer } from 'react-navigation';

import Home from "./app/components/Home/Index"
import Dashboard from "./app/components/Dashboard/Index"


class App extends Component {
  render() { 
    return ( <MyApp /> );
  }
}
 
export default App;


const AppStack = createDrawerNavigator({
  home: {
    screen: Home,
  },
  dashboard: {
    screen: Dashboard
  }
})
 
const MyApp = createAppContainer(AppStack);