|
@@ -1,8 +1,8 @@
|
1
|
|
-import React, {Component} from 'react';
|
|
1
|
+import React from 'react';
|
2
|
2
|
import {StyleSheet, ScrollView} from 'react-native';
|
3
|
3
|
import Row from '../components/Row';
|
4
|
4
|
|
5
|
|
-class NavigationTypes extends Component {
|
|
5
|
+class NavigationTypes extends React.Component {
|
6
|
6
|
|
7
|
7
|
constructor(props) {
|
8
|
8
|
super(props);
|
|
@@ -40,6 +40,13 @@ class NavigationTypes extends Component {
|
40
|
40
|
});
|
41
|
41
|
};
|
42
|
42
|
|
|
43
|
+ pushCustomButtonScreen = () => {
|
|
44
|
+ this.props.navigator.push({
|
|
45
|
+ screen: 'example.Types.CustomButtonScreen',
|
|
46
|
+ title: 'Custom Buttons'
|
|
47
|
+ });
|
|
48
|
+ };
|
|
49
|
+
|
43
|
50
|
pushTopTabsScreen = () => {
|
44
|
51
|
this.props.navigator.push({
|
45
|
52
|
screen: 'example.Types.TopTabs',
|
|
@@ -93,6 +100,7 @@ class NavigationTypes extends Component {
|
93
|
100
|
<Row title={'Toggle Drawer'} onPress={this.toggleDrawer}/>
|
94
|
101
|
<Row title={'Push Screen'} testID={'pushScreen'} onPress={this.pushScreen}/>
|
95
|
102
|
<Row title={'Custom TopBar'} onPress={this.pushCustomTopBarScreen}/>
|
|
103
|
+ <Row title={'Custom Button'} onPress={this.pushCustomButtonScreen}/>
|
96
|
104
|
<Row title={'Top Tabs Screen'} onPress={this.pushTopTabsScreen} platform={'android'}/>
|
97
|
105
|
<Row title={'Show Modal'} onPress={this.showModal}/>
|
98
|
106
|
<Row title={'Show Lightbox'} onPress={this.showLightBox}/>
|