Sfoglia il codice sorgente

update readme with disableIconTint

Ran Greenberg 8 anni fa
parent
commit
6dcbd21414
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 4
    2
      README.md

+ 4
- 2
README.md Vedi File

543
         title: 'Edit', // for a textual button, provide the button title (label)
543
         title: 'Edit', // for a textual button, provide the button title (label)
544
         id: 'edit', // id for this button, given in onNavigatorEvent(event) to help understand which button was clicked
544
         id: 'edit', // id for this button, given in onNavigatorEvent(event) to help understand which button was clicked
545
         testID: 'e2e_rules', // optional, used to locate this view in end-to-end tests
545
         testID: 'e2e_rules', // optional, used to locate this view in end-to-end tests
546
-        disabled: true // optional, used to disable the button (appears faded and doesn't interact)
546
+        disabled: true, // optional, used to disable the button (appears faded and doesn't interact)
547
+        disableIconTint: true, // optional, by default the image colors are overridden and tinted to navBarButtonColor, set to true to keep the original image colors
547
       },
548
       },
548
       {
549
       {
549
         icon: require('../../img/navicon_add.png'), // for icon button, provide the local image asset name
550
         icon: require('../../img/navicon_add.png'), // for icon button, provide the local image asset name
582
     icon: require('../../img/navicon_edit.png'), // if you want an image button
583
     icon: require('../../img/navicon_edit.png'), // if you want an image button
583
     id: 'compose', // id of the button which will pass to your press event handler
584
     id: 'compose', // id of the button which will pass to your press event handler
584
     testID: 'e2e_is_awesome', // if you have e2e tests, use this to find your button
585
     testID: 'e2e_is_awesome', // if you have e2e tests, use this to find your button
585
-    disabled: true // optional, used to disable the button (appears faded and doesn't interact)
586
+    disabled: true, // optional, used to disable the button (appears faded and doesn't interact)
587
+    disableIconTint: true, // optional, by default the image colors are overridden and tinted to navBarButtonColor, set to true to keep the original image colors
586
   }],
588
   }],
587
   leftButtons: [] // buttons for the left side of the nav bar (optional)
589
   leftButtons: [] // buttons for the left side of the nav bar (optional)
588
 }
590
 }