Pārlūkot izejas kodu

add left button to pushed screen

Guy Carmeli 8 gadus atpakaļ
vecāks
revīzija
432cab17af
1 mainītis faili ar 6 papildinājumiem un 4 dzēšanām
  1. 6
    4
      example-redux/src/screens/PushedScreen.js

+ 6
- 4
example-redux/src/screens/PushedScreen.js Parādīt failu

@@ -21,10 +21,12 @@ class PushedScreen extends Component {
21 21
     tabIndicatorColor: '#FF4081'
22 22
   };
23 23
 
24
-  static propTypes = {
25
-    str: PropTypes.string.isRequired,
26
-    obj: PropTypes.object.isRequired,
27
-    num: PropTypes.number.isRequired
24
+  static navigatorButtons = {
25
+    leftButton:
26
+      {
27
+        id: 'back',
28
+        color: '#00ff00'
29
+      }
28 30
   };
29 31
 
30 32
   constructor(props) {