Browse Source

Add title to e2e screen for testing purposes

Guy Carmeli 6 years ago
parent
commit
0fa462c0bd
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      playground/src/screens/complexlayouts/BottomTabSideMenuScreen.js

+ 11
- 0
playground/src/screens/complexlayouts/BottomTabSideMenuScreen.js View File

5
 const testIDs = require('../../testIDs');
5
 const testIDs = require('../../testIDs');
6
 
6
 
7
 class BottomTabSideMenuScreen extends Component {
7
 class BottomTabSideMenuScreen extends Component {
8
+  static get options() {
9
+    return {
10
+      topBar: {
11
+        title: {
12
+          text: 'test',
13
+        }
14
+      }
15
+    }
16
+  }
17
+
8
   onOpenSideMenuPress = () => {
18
   onOpenSideMenuPress = () => {
9
     Navigation.mergeOptions(this.props.componentId, {
19
     Navigation.mergeOptions(this.props.componentId, {
10
       sideMenu: {
20
       sideMenu: {
14
       }
24
       }
15
     });
25
     });
16
   }
26
   }
27
+
17
   render() {
28
   render() {
18
     return (
29
     return (
19
       <View style={styles.root}>
30
       <View style={styles.root}>