10
10
11
11
'use strict' ;
12
12
13
+ const Platform = require ( 'Platform' ) ; // TODO(macOS ISS#2323203)
13
14
const React = require ( 'react' ) ;
14
15
const StyleSheet = require ( 'StyleSheet' ) ;
15
16
const TextInput = require ( 'TextInput' ) ;
@@ -77,6 +78,11 @@ class RNTesterExampleFilter extends React.Component<Props, State> {
77
78
this . setState ( ( ) => ( { filter : text } ) ) ;
78
79
} }
79
80
placeholder = "Search..."
81
+ placeholderTextColor = {
82
+ Platform . OS === 'macos'
83
+ ? { semantic : 'placeholderTextColor' }
84
+ : undefined /*TODO(macOS ISS#2323203)*/
85
+ }
80
86
underlineColorAndroid = "transparent"
81
87
style = { styles . searchTextInput }
82
88
testID = "explorer_search"
@@ -89,12 +95,32 @@ class RNTesterExampleFilter extends React.Component<Props, State> {
89
95
90
96
const styles = StyleSheet . create ( {
91
97
searchRow : {
92
- backgroundColor : '#eeeeee' ,
98
+ // [TODO(macOS ISS#2323203)
99
+ ...Platform . select ( {
100
+ macos : {
101
+ backgroundColor : { semantic : 'windowBackgroundColor' } ,
102
+ } ,
103
+ default : {
104
+ // ]TODO(macOS ISS#2323203)
105
+ backgroundColor : '#eeeeee' ,
106
+ } , // [TODO(macOS ISS#2323203)
107
+ } ) , // ]TODO(macOS ISS#2323203)
93
108
padding : 10 ,
94
109
} ,
95
110
searchTextInput : {
96
- backgroundColor : 'white' ,
97
- borderColor : '#cccccc' ,
111
+ // [TODO(macOS ISS#2323203)
112
+ ...Platform . select ( {
113
+ macos : {
114
+ color : { semantic : 'textColor' } ,
115
+ backgroundColor : { semantic : 'textBackgroundColor' } ,
116
+ borderColor : { semantic : 'quaternaryLabelColor' } ,
117
+ } ,
118
+ default : {
119
+ // ]TODO(macOS ISS#2323203)
120
+ backgroundColor : 'white' ,
121
+ borderColor : '#cccccc' ,
122
+ } , // [TODO(macOS ISS#2323203)
123
+ } ) , // ]TODO(macOS ISS#2323203)
98
124
borderRadius : 3 ,
99
125
borderWidth : 1 ,
100
126
paddingLeft : 8 ,
0 commit comments