|
@@ -13,6 +13,9 @@ class FirstTabScreen extends Component {
|
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
|
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)
|
|
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)
|
16
|
19
|
},
|
17
|
20
|
{
|
18
|
21
|
icon: require('../../img/navicon_add.png'), // for icon button, provide the local image asset name
|
|
@@ -53,6 +56,9 @@ class FirstTabScreen extends Component {
|
53
|
56
|
testID: 'e2e_is_awesome', // if you have e2e tests, use this to find your button
|
54
|
57
|
disabled: true, // optional, used to disable the button (appears faded and doesn't interact)
|
55
|
58
|
disableIconTint: true, // optional, by default the image colors are overridden and tinted to navBarButtonColor, set to true to keep the original image colors
|
|
59
|
+ buttonColor: 'blue', // Set color for the button (can also be used in setButtons function to set different button style programatically)
|
|
60
|
+ buttonFontSize: 14, // Set font size for the button (can also be used in setButtons function to set different button style programatically)
|
|
61
|
+ buttonFontWeight: '600', // Set font weight for the button (can also be used in setButtons function to set different button style programatically)
|
56
|
62
|
}],
|
57
|
63
|
leftButtons: [] // buttons for the left side of the nav bar (optional)
|
58
|
64
|
}
|