Kaynağa Gözat

Update button options

Guy Carmeli 6 yıl önce
ebeveyn
işleme
2f1554f27b
1 değiştirilmiş dosya ile 10 ekleme ve 9 silme
  1. 10
    9
      playground/src/screens/OptionsScreen.js

+ 10
- 9
playground/src/screens/OptionsScreen.js Dosyayı Görüntüle

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