Add switch example

This commit is contained in:
Brent Vatne
2018-03-19 16:52:12 -04:00
parent 577d99c165
commit 2233d0e1d8
2 changed files with 8 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ import SimpleStack from './SimpleStack';
import StackWithHeaderPreset from './StackWithHeaderPreset';
import StackWithTranslucentHeader from './StackWithTranslucentHeader';
import SimpleTabs from './SimpleTabs';
import SwitchWithStacks from './SwitchWithStacks';
import TabsWithNavigationFocus from './TabsWithNavigationFocus';
const ExampleInfo = {
@@ -39,6 +40,10 @@ const ExampleInfo = {
name: 'Stack Example',
description: 'A card stack',
},
SwitchWithStacks: {
name: 'Switch between routes',
description: 'Jump between routes',
},
StackWithCustomHeaderBackImage: {
name: 'Custom header back image',
description: 'Stack with custom header back image',
@@ -112,7 +117,8 @@ const ExampleInfo = {
};
const ExampleRoutes = {
SimpleStack: SimpleStack,
SimpleStack,
SwitchWithStacks,
SimpleTabs: SimpleTabs,
Drawer: Drawer,
// MultipleDrawer: {

View File

@@ -33,7 +33,7 @@ class SignInScreen extends React.Component<any, any> {
_signInAsync = async () => {
await AsyncStorage.setItem('userToken', 'abc');
this.props.navigation.navigate('App');
this.props.navigation.navigate('Home');
};
}