mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-11 22:33:32 +08:00
fix: add peer dep on react-navigation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import * as React from 'react';
|
||||
import { Button, StatusBar } from 'react-native';
|
||||
import { SafeAreaView } from '@react-navigation/native';
|
||||
import { SafeAreaView } from 'react-navigation';
|
||||
import {
|
||||
createStackNavigator,
|
||||
TransitionPresets,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as React from 'react';
|
||||
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
||||
import { createStackNavigator } from 'react-navigation-stack';
|
||||
import { createAppContainer } from '@react-navigation/native';
|
||||
import { createAppContainer } from 'react-navigation';
|
||||
|
||||
class ScreenOne extends React.Component {
|
||||
componentDidMount() {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import * as React from 'react';
|
||||
import { Button, Text, View, StyleSheet } from 'react-native';
|
||||
import { BarCodeScanner } from 'expo-barcode-scanner';
|
||||
import { withNavigationFocus } from '@react-navigation/core';
|
||||
import { withNavigationFocus } from 'react-navigation';
|
||||
import { createStackNavigator } from 'react-navigation-stack';
|
||||
|
||||
const IndexScreen = ({ navigation }) => (
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as React from 'react';
|
||||
import { Dimensions, Button, View, Text } from 'react-native';
|
||||
import { withNavigation } from '@react-navigation/core';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
import {
|
||||
createStackNavigator,
|
||||
TransitionPresets,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as React from 'react';
|
||||
import { Dimensions, Button, View, Text } from 'react-native';
|
||||
import { withNavigation } from '@react-navigation/core';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
import { createStackNavigator } from 'react-navigation-stack';
|
||||
|
||||
const Buttons = withNavigation(props => (
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
StyleSheet,
|
||||
View,
|
||||
} from 'react-native';
|
||||
import { createSwitchNavigator } from '@react-navigation/core';
|
||||
import { createSwitchNavigator } from 'react-navigation';
|
||||
import { createStackNavigator } from 'react-navigation-stack';
|
||||
|
||||
class SignInScreen extends React.Component<any, any> {
|
||||
|
||||
Reference in New Issue
Block a user