mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 22:30:36 +08:00
Fix example project
This commit is contained in:
committed by
satyajit.happy
parent
fb09ca5ad3
commit
d9f142a6fd
@@ -2,8 +2,11 @@
|
||||
|
||||
import * as React from 'react';
|
||||
import { View, StyleSheet } from 'react-native';
|
||||
import { ScreenContainer } from 'react-native-screens';
|
||||
import { polyfill } from 'react-lifecycles-compat';
|
||||
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import { ScreenContainer } from 'react-native-screens';
|
||||
|
||||
import createTabNavigator, {
|
||||
type InjectedProps,
|
||||
} from '../utils/createTabNavigator';
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
NavigationActions,
|
||||
} from '@react-navigation/core';
|
||||
|
||||
import { createNavigationContainer } from '@react-navigation/native';
|
||||
import { createAppContainer } from '@react-navigation/native';
|
||||
|
||||
export type InjectedProps = {
|
||||
getLabelText: (props: { route: any }) => any,
|
||||
@@ -198,6 +198,6 @@ export default function createTabNavigator(TabView: React.ComponentType<*>) {
|
||||
const router = TabRouter(routes, config);
|
||||
const navigator = createNavigator(NavigationView, router, config);
|
||||
|
||||
return createNavigationContainer(navigator);
|
||||
return createAppContainer(navigator);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
import * as React from 'react';
|
||||
import { Platform, StyleSheet, View } from 'react-native';
|
||||
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
import { Screen, screensEnabled } from 'react-native-screens';
|
||||
|
||||
type Props = {
|
||||
|
||||
Reference in New Issue
Block a user