@@ -71,8 +71,8 @@ class Button extends React.Component<{
7171 */
7272 accessibilityLabel : PropTypes . string ,
7373 /**
74- * Hint text to display blindness accessibility features
75- */
74+ * Hint text to display blindness accessibility features
75+ */
7676 accessibilityHint : PropTypes . string , // TODO(OSS Candidate ISS#2710739)
7777 /**
7878 * Color of the text (iOS, macOS), or background color of the button (Android)
@@ -110,7 +110,10 @@ class Button extends React.Component<{
110110 const buttonStyles = [ styles . button ] ;
111111 const textStyles = [ styles . text ] ;
112112 if ( color ) {
113- if ( Platform . OS === 'ios' || Platform . OS === 'macos' ) { // TODO(macOS ISS#2323203)
113+ if (
114+ Platform . OS === 'ios' ||
115+ Platform . OS === 'macos' /* TODO(macOS ISS#2323203) */
116+ ) {
114117 textStyles . push ( { color : color } ) ;
115118 } else {
116119 buttonStyles . push ( { backgroundColor : color } ) ;
@@ -129,11 +132,11 @@ class Button extends React.Component<{
129132 const formattedTitle =
130133 Platform . OS === 'android' ? title . toUpperCase ( ) : title ;
131134 const Touchable =
132- ( Platform . OS === 'android' ) // [TODO(windows ISS)
133- ? TouchableNativeFeedback
134- : ( Platform . OS === 'uwp' || Platform . OS === 'windesktop' )
135- ? TouchableHighlight
136- : TouchableOpacity ; // ]TODO(windows ISS)
135+ Platform . OS === 'android' // [TODO(windows ISS)
136+ ? TouchableNativeFeedback
137+ : Platform . OS === 'uwp' || Platform . OS === 'windesktop'
138+ ? TouchableHighlight
139+ : TouchableOpacity ; // ]TODO(windows ISS)
137140 return (
138141 < Touchable
139142 accessibilityLabel = { accessibilityLabel }
@@ -164,11 +167,12 @@ const styles = StyleSheet.create({
164167 borderRadius : 2 ,
165168 } ,
166169 macos : { } , // TODO(macOS ISS#2323203)
167- uwp : { // [TODO(windows ISS)
170+ uwp : {
171+ // [TODO(windows ISS)
168172 backgroundColor : '#2196F3' ,
169173 borderRadius : 2 ,
170174 } ,
171- windesktop : { } , // ]TODO(windows ISS)
175+ windesktop : { } , // ]TODO(windows ISS)
172176 } ) ,
173177 text : Platform . select ( {
174178 ios : {
@@ -184,13 +188,15 @@ const styles = StyleSheet.create({
184188 padding : 8 ,
185189 fontWeight : '500' ,
186190 } ,
187- macos : { // [TODO(macOS ISS#2323203)
191+ macos : {
192+ // [TODO(macOS ISS#2323203)
188193 color : '#007AFF' ,
189194 textAlign : 'center' ,
190195 padding : 8 ,
191196 fontSize : 18 ,
192197 } , // ]TODO(macOS ISS#2323203)
193- uwp : { // [TODO(windows ISS)
198+ uwp : {
199+ // [TODO(windows ISS)
194200 textAlign : 'center' ,
195201 color : 'white' ,
196202 padding : 8 ,
@@ -205,7 +211,8 @@ const styles = StyleSheet.create({
205211 backgroundColor : '#dfdfdf' ,
206212 } ,
207213 macos : { } , // TODO(macOS ISS#2323203)
208- uwp : { // [TODO(windows ISS)
214+ uwp : {
215+ // [TODO(windows ISS)
209216 backgroundColor : '#dfdfdf' ,
210217 } ,
211218 windesktop : { } , // ]TODO(windows ISS)
@@ -214,13 +221,15 @@ const styles = StyleSheet.create({
214221 ios : {
215222 color : '#cdcdcd' ,
216223 } ,
217- macos : { // [TODO(macOS ISS#2323203)
224+ macos : {
225+ // [TODO(macOS ISS#2323203)
218226 color : '#cdcdcd' ,
219227 } , // ]TODO(macOS ISS#2323203)
220228 android : {
221229 color : '#a1a1a1' ,
222230 } ,
223- uwp : { // [TODO(windows ISS)
231+ uwp : {
232+ // [TODO(windows ISS)
224233 color : '#a1a1a1' ,
225234 } ,
226235 windesktop : {
0 commit comments