Browse Source

add support for disabled buttons and backButtonHidden on push

talkol 8 years ago
parent
commit
3eedecaddf
2 changed files with 3 additions and 1 deletions
  1. 2
    1
      example/src/screens/SecondTabScreen.js
  2. 1
    0
      src/platformSpecific.ios.js

+ 2
- 1
example/src/screens/SecondTabScreen.js View File

@@ -56,7 +56,8 @@ export default class SecondTabScreen extends Component {
56 56
       buttons = [
57 57
         {
58 58
           title: 'Edit',
59
-          id: 'edit'
59
+          id: 'edit',
60
+          disabled: true
60 61
         },
61 62
         {
62 63
           icon: require('../../img/navicon_add.png'),

+ 1
- 0
src/platformSpecific.ios.js View File

@@ -185,6 +185,7 @@ function navigatorPush(navigator, params) {
185 185
     passProps: passProps,
186 186
     style: navigatorStyle,
187 187
     backButtonTitle: params.backButtonTitle,
188
+    backButtonHidden: params.backButtonHidden,
188 189
     leftButtons: navigatorButtons.leftButtons,
189 190
     rightButtons: navigatorButtons.rightButtons
190 191
   });