Commit 8587ee2 1 parent b7f3d69 commit 8587ee2 Copy full SHA for 8587ee2
File tree 1 file changed +16
-3
lines changed
Libraries/Components/View
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*
7
7
* @format
8
- * @flow
8
+ * @flow strict-local
9
9
*/
10
10
11
11
'use strict' ;
@@ -205,9 +205,22 @@ type GestureResponderEventProps = $ReadOnly<{|
205
205
onStartShouldSetResponderCapture ?: ?( e : PressEvent ) => boolean ,
206
206
| } > ;
207
207
208
+ type AndroidDrawableThemeAttr = $ReadOnly < { |
209
+ type : 'ThemeAttrAndroid' ,
210
+ attribute : string ,
211
+ | } > ;
212
+
213
+ type AndroidDrawableRipple = $ReadOnly < { |
214
+ type : 'RippleAndroid' ,
215
+ color ?: ?number ,
216
+ borderless ?: ?boolean ,
217
+ | } > ;
218
+
219
+ type AndroidDrawable = AndroidDrawableThemeAttr | AndroidDrawableRipple ;
220
+
208
221
type AndroidViewProps = $ReadOnly < { |
209
- nativeBackgroundAndroid ?: ?Object ,
210
- nativeForegroundAndroid ?: ?Object ,
222
+ nativeBackgroundAndroid ?: ?AndroidDrawable ,
223
+ nativeForegroundAndroid ?: ?AndroidDrawable ,
211
224
212
225
/**
213
226
* Whether this `View` should render itself (and all of its children) into a
You can’t perform that action at this time.
0 commit comments