Fix linting and typo

This commit is contained in:
Brent Vatne
2018-10-31 19:23:44 -07:00
parent bb25e7ee79
commit ab20beddea
5 changed files with 12 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
import React, { Component } from 'react';
import React } from 'react';
import { StyleSheet, View, Text } from 'react-native';
import { createStackNavigator } from 'react-navigation-stack';
@@ -71,7 +71,7 @@ function createHeaderBackgroundExample(options = {}) {
},
},
News: {
screen: ({ navigation }) => (
screen: () => (
<View style={styles.container}>
<Text style={styles.tips} onPress={() => {}}>
News Screen

View File

@@ -1,5 +1,5 @@
import * as React from 'react';
import { Button, ScrollView, StatusBar } from 'react-native';
import { Button, StatusBar } from 'react-native';
import { SafeAreaView } from '@react-navigation/native';
import { createStackNavigator } from 'react-navigation-stack';

View File

@@ -41,7 +41,7 @@ const Drawer = createDrawerNavigator(
},
{
contentComponent: props => <Menu {...props} />,
navigationOptions: { title: 'Example' }
navigationOptions: { title: 'Example' },
}
);