Rename exports for navigators from XNavigator to createXNavigator

This commit is contained in:
Brent Vatne
2018-03-14 15:21:38 -07:00
parent 160d44f58e
commit 2c7187b22a
19 changed files with 2156 additions and 736 deletions

View File

@@ -6,7 +6,7 @@ import type { NavigationScreenProp } from 'react-navigation';
import * as React from 'react';
import { Image, Button, StatusBar, StyleSheet } from 'react-native';
import { StackNavigator, SafeAreaView } from 'react-navigation';
import { createStackNavigator, SafeAreaView } from 'react-navigation';
import SampleText from './SampleText';
type MyNavScreenProps = {
@@ -107,7 +107,7 @@ class MyProfileScreen extends React.Component<MyProfileScreenProps> {
}
}
const StackWithCustomHeaderBackImage = StackNavigator(
const StackWithCustomHeaderBackImage = createStackNavigator(
{
Home: {
screen: MyHomeScreen,