|
@@ -2,7 +2,6 @@ import React, {Component} from 'react';
|
2
|
2
|
import {
|
3
|
3
|
Text,
|
4
|
4
|
View,
|
5
|
|
- ScrollView,
|
6
|
5
|
TouchableOpacity,
|
7
|
6
|
StyleSheet,
|
8
|
7
|
AlertIOS
|
|
@@ -36,16 +35,16 @@ export default class FirstTabScreen extends Component {
|
36
|
35
|
}
|
37
|
36
|
|
38
|
37
|
onNavigatorEvent(event) {
|
39
|
|
- if (event.id == 'menu') {
|
|
38
|
+ if (event.id === 'menu') {
|
40
|
39
|
this.props.navigator.toggleDrawer({
|
41
|
40
|
side: 'left',
|
42
|
41
|
animated: true
|
43
|
42
|
});
|
44
|
43
|
}
|
45
|
|
- if (event.id == 'edit') {
|
|
44
|
+ if (event.id === 'edit') {
|
46
|
45
|
AlertIOS.alert('NavBar', 'Edit button pressed');
|
47
|
46
|
}
|
48
|
|
- if (event.id == 'add') {
|
|
47
|
+ if (event.id === 'add') {
|
49
|
48
|
AlertIOS.alert('NavBar', 'Add button pressed');
|
50
|
49
|
}
|
51
|
50
|
}
|