|
@@ -2,10 +2,11 @@ const React = require('react');
|
2
|
2
|
const { Component } = require('react');
|
3
|
3
|
const { View, Button } = require('react-native');
|
4
|
4
|
const { Navigation } = require('react-native-navigation');
|
|
5
|
+const testIDs = require('../../testIDs');
|
5
|
6
|
|
6
|
7
|
class BottomTabSideMenuScreen extends Component {
|
7
|
|
- onOpenSideMenuPress = () => {
|
8
|
|
- Navigation.mergeOptions(this.props.componentId, {
|
|
8
|
+ onOpenSideMenuPress = () => {
|
|
9
|
+ Navigation.mergeOptions(this.props.componentId, {
|
9
|
10
|
sideMenu: {
|
10
|
11
|
left: {
|
11
|
12
|
visible: true
|
|
@@ -13,21 +14,21 @@ class BottomTabSideMenuScreen extends Component {
|
13
|
14
|
}
|
14
|
15
|
});
|
15
|
16
|
}
|
16
|
|
- render() {
|
|
17
|
+ render() {
|
17
|
18
|
return (
|
18
|
19
|
<View style={styles.root}>
|
19
|
20
|
<Button
|
20
|
21
|
title="Open SideMenu"
|
21
|
22
|
color="blue"
|
22
|
23
|
onPress={this.onOpenSideMenuPress}
|
23
|
|
- //TODO: testID for detox
|
|
24
|
+ testID={testIDs.OPEN_SIDE_MENU}
|
24
|
25
|
/>
|
25
|
26
|
</View>
|
26
|
27
|
);
|
27
|
28
|
}
|
28
|
29
|
}
|
29
|
|
- module.exports = BottomTabSideMenuScreen;
|
30
|
|
- const styles = {
|
|
30
|
+module.exports = BottomTabSideMenuScreen;
|
|
31
|
+const styles = {
|
31
|
32
|
root: {
|
32
|
33
|
flexGrow: 1,
|
33
|
34
|
justifyContent: 'center',
|