Sfoglia il codice sorgente

added missing ',' on example code (#1147)

fqborges 7 anni fa
parent
commit
7b99fa8bf4
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      docs/adding-buttons-to-the-navigator.md

+ 2
- 2
docs/adding-buttons-to-the-navigator.md Vedi File

@@ -12,7 +12,7 @@ class FirstTabScreen extends Component {
12 12
         testID: 'e2e_rules', // optional, used to locate this view in end-to-end tests
13 13
         disabled: true, // optional, used to disable the button (appears faded and doesn't interact)
14 14
         disableIconTint: true, // optional, by default the image colors are overridden and tinted to navBarButtonColor, set to true to keep the original image colors
15
-        showAsAction: 'ifRoom' // optional, Android only. Control how the button is displayed in the Toolbar. Accepted valued: 'ifRoom' (default) - Show this item as a button in an Action Bar if the system decides there is room for it. 'always' - Always show this item as a button in an Action Bar. 'withText' - When this item is in the action bar, always show it with a text label even if it also has an icon specified. 'never' - Never show this item as a button in an Action Bar.
15
+        showAsAction: 'ifRoom', // optional, Android only. Control how the button is displayed in the Toolbar. Accepted valued: 'ifRoom' (default) - Show this item as a button in an Action Bar if the system decides there is room for it. 'always' - Always show this item as a button in an Action Bar. 'withText' - When this item is in the action bar, always show it with a text label even if it also has an icon specified. 'never' - Never show this item as a button in an Action Bar.
16 16
         buttonColor: 'blue', // Set color for the button (can also be used in setButtons function to set different button style programatically)
17 17
         buttonFontSize: 14, // Set font size for the button (can also be used in setButtons function to set different button style programatically)
18 18
         buttonFontWeight: '600', // Set font weight for the button (can also be used in setButtons function to set different button style programatically)
@@ -146,4 +146,4 @@ static navigatorStyle = {
146 146
   contextualMenuBackgroundColor: '#00adf5',
147 147
   contextualMenuButtonsColor: '#ffffff'
148 148
 };
149
-```
149
+```