Index
Image
import React, { Component } from 'react'
// Add Image
import { View, TextInput, Text, Button, Alert, Image } from "react-native"
import styles from './styles'
export class Index extends Component {
state = { username: "", password: ""}
// navigationOptions
static navigationOptions = {
header: null,
drawerLabel: 'Home',
// Add image in draw icon
drawerIcon: () => (
<Image
source={require('./chats-icon.png')}
style={{ width:30, height: 30}}
/>
),
};
// Add Image
import { View, TextInput, Text, Button, Alert, Image } from "react-native"
import styles from './styles'
export class Index extends Component {
state = { username: "", password: ""}
// navigationOptions
static navigationOptions = {
header: null,
drawerLabel: 'Home',
// Add image in draw icon
drawerIcon: () => (
<Image
source={require('./chats-icon.png')}
style={{ width:30, height: 30}}
/>
),
};