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
       buttons = [
56
       buttons = [
57
         {
57
         {
58
           title: 'Edit',
58
           title: 'Edit',
59
-          id: 'edit'
59
+          id: 'edit',
60
+          disabled: true
60
         },
61
         },
61
         {
62
         {
62
           icon: require('../../img/navicon_add.png'),
63
           icon: require('../../img/navicon_add.png'),

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

185
     passProps: passProps,
185
     passProps: passProps,
186
     style: navigatorStyle,
186
     style: navigatorStyle,
187
     backButtonTitle: params.backButtonTitle,
187
     backButtonTitle: params.backButtonTitle,
188
+    backButtonHidden: params.backButtonHidden,
188
     leftButtons: navigatorButtons.leftButtons,
189
     leftButtons: navigatorButtons.leftButtons,
189
     rightButtons: navigatorButtons.rightButtons
190
     rightButtons: navigatorButtons.rightButtons
190
   });
191
   });