Explorar el Código

Add title to e2e screen for testing purposes

Guy Carmeli hace 6 años
padre
commit
0fa462c0bd
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  1. 11
    0
      playground/src/screens/complexlayouts/BottomTabSideMenuScreen.js

+ 11
- 0
playground/src/screens/complexlayouts/BottomTabSideMenuScreen.js Ver fichero

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