|
@@ -7,6 +7,7 @@ import {
|
7
|
7
|
Alert,
|
8
|
8
|
Platform
|
9
|
9
|
} from 'react-native';
|
|
10
|
+import {Navigation} from 'react-native-navigation';
|
10
|
11
|
|
11
|
12
|
export default class FirstTabScreen extends Component {
|
12
|
13
|
static navigatorButtons = {
|
|
@@ -26,7 +27,14 @@ export default class FirstTabScreen extends Component {
|
26
|
27
|
]
|
27
|
28
|
};
|
28
|
29
|
static navigatorStyle = {
|
29
|
|
- drawUnderTabBar: true
|
|
30
|
+ navBarBackgroundColor: '#4dbce9',
|
|
31
|
+ navBarTextColor: '#ffff00',
|
|
32
|
+ navBarSubtitleTextColor: '#ff0000',
|
|
33
|
+ navBarButtonColor: '#ffffff',
|
|
34
|
+ statusBarTextColorScheme: 'light',
|
|
35
|
+ tabBarBackgroundColor: '#4dbce9',
|
|
36
|
+ tabBarButtonColor: '#ffffff',
|
|
37
|
+ tabBarSelectedButtonColor: '#ffff00'
|
30
|
38
|
};
|
31
|
39
|
|
32
|
40
|
constructor(props) {
|
|
@@ -78,6 +86,10 @@ export default class FirstTabScreen extends Component {
|
78
|
86
|
<Text style={styles.button}>Show In-App Notification</Text>
|
79
|
87
|
</TouchableOpacity> : false
|
80
|
88
|
}
|
|
89
|
+
|
|
90
|
+ <TouchableOpacity onPress={ this.onStartSingleScreenApp.bind(this) }>
|
|
91
|
+ <Text style={styles.button}>Show Single Screen App</Text>
|
|
92
|
+ </TouchableOpacity>
|
81
|
93
|
</View>
|
82
|
94
|
);
|
83
|
95
|
}
|
|
@@ -117,6 +129,14 @@ export default class FirstTabScreen extends Component {
|
117
|
129
|
screen: "example.NotificationScreen"
|
118
|
130
|
});
|
119
|
131
|
}
|
|
132
|
+
|
|
133
|
+ onStartSingleScreenApp() {
|
|
134
|
+ Navigation.startSingleScreenApp({
|
|
135
|
+ screen: {
|
|
136
|
+ screen: 'example.FirstTabScreen'
|
|
137
|
+ }
|
|
138
|
+ });
|
|
139
|
+ }
|
120
|
140
|
}
|
121
|
141
|
|
122
|
142
|
const styles = StyleSheet.create({
|