Bladeren bron

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

fqborges 8 jaren geleden
bovenliggende
commit
7b99fa8bf4
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      docs/adding-buttons-to-the-navigator.md

+ 2
- 2
docs/adding-buttons-to-the-navigator.md Bestand weergeven

12
         testID: 'e2e_rules', // optional, used to locate this view in end-to-end tests
12
         testID: 'e2e_rules', // optional, used to locate this view in end-to-end tests
13
         disabled: true, // optional, used to disable the button (appears faded and doesn't interact)
13
         disabled: true, // optional, used to disable the button (appears faded and doesn't interact)
14
         disableIconTint: true, // optional, by default the image colors are overridden and tinted to navBarButtonColor, set to true to keep the original image colors
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
         buttonColor: 'blue', // Set color for the button (can also be used in setButtons function to set different button style programatically)
16
         buttonColor: 'blue', // Set color for the button (can also be used in setButtons function to set different button style programatically)
17
         buttonFontSize: 14, // Set font size for the button (can also be used in setButtons function to set different button style programatically)
17
         buttonFontSize: 14, // Set font size for the button (can also be used in setButtons function to set different button style programatically)
18
         buttonFontWeight: '600', // Set font weight for the button (can also be used in setButtons function to set different button style programatically)
18
         buttonFontWeight: '600', // Set font weight for the button (can also be used in setButtons function to set different button style programatically)
146
   contextualMenuBackgroundColor: '#00adf5',
146
   contextualMenuBackgroundColor: '#00adf5',
147
   contextualMenuButtonsColor: '#ffffff'
147
   contextualMenuButtonsColor: '#ffffff'
148
 };
148
 };
149
-```
149
+```