Browse Source

Update button options

Guy Carmeli 6 years ago
parent
commit
2f1554f27b
1 changed files with 10 additions and 9 deletions
  1. 10
    9
      playground/src/screens/OptionsScreen.js

+ 10
- 9
playground/src/screens/OptionsScreen.js View File

62
             id: BUTTON_ONE,
62
             id: BUTTON_ONE,
63
             testID: BUTTON_ONE,
63
             testID: BUTTON_ONE,
64
             title: 'One',
64
             title: 'One',
65
-            buttonFontSize: 28,
66
-            buttonColor: 'red'
65
+            fontFamily: 'HelveticaNeue-Italic',
66
+            fontSize: 28,
67
+            color: 'red'
67
           }
68
           }
68
         ],
69
         ],
69
         leftButtons: [{
70
         leftButtons: [{
71
           testID: BUTTON_LEFT,
72
           testID: BUTTON_LEFT,
72
           icon: require('../../img/navicon_add.png'),
73
           icon: require('../../img/navicon_add.png'),
73
           title: 'Left',
74
           title: 'Left',
74
-          buttonColor: 'purple'
75
+          color: 'purple'
75
         }]
76
         }]
76
       },
77
       },
77
       fab: {
78
       fab: {
133
             icon: require('../../img/navicon_add.png'),
134
             icon: require('../../img/navicon_add.png'),
134
             disableIconTint: true,
135
             disableIconTint: true,
135
             showAsAction: 'ifRoom',
136
             showAsAction: 'ifRoom',
136
-            buttonColor: 'green',
137
-            buttonFontSize: 28,
138
-            buttonFontWeight: '800'
137
+            color: 'green',
138
+            fontSize: 28,
139
+            fontWeight: '800'
139
           }],
140
           }],
140
           leftButtons: []
141
           leftButtons: []
141
         }
142
         }
147
             id: BUTTON_ONE,
148
             id: BUTTON_ONE,
148
             testID: BUTTON_ONE,
149
             testID: BUTTON_ONE,
149
             title: 'One',
150
             title: 'One',
150
-            buttonColor: 'red'
151
+            color: 'red'
151
           }],
152
           }],
152
           leftButtons: [{
153
           leftButtons: [{
153
             id: BUTTON_LEFT,
154
             id: BUTTON_LEFT,
154
             testID: BUTTON_LEFT,
155
             testID: BUTTON_LEFT,
155
             icon: require('../../img/navicon_add.png'),
156
             icon: require('../../img/navicon_add.png'),
156
             title: 'Left',
157
             title: 'Left',
157
-            buttonColor: 'purple'
158
+            color: 'purple'
158
           }]
159
           }]
159
         }
160
         }
160
       });
161
       });
173
           fontSize: 20,
174
           fontSize: 20,
174
           fontFamily: 'HelveticaNeue-CondensedBold'
175
           fontFamily: 'HelveticaNeue-CondensedBold'
175
         },
176
         },
176
-        buttonColor: 'red',
177
+        color: 'red',
177
       }
178
       }
178
     });
179
     });
179
   }
180
   }