- create missing AndroidDrawable flow types in ViewPropTypes.js. (#23192)
Summary: Related to #22100 Enhance last ViewPropTypes flow types. - [x] yarn run prettier - [x] yarn run flow-check-ios - [x] yarn run flow-check-android [GENERAL] [ENHANCEMENT] [ViewPropTypes.js] - Enhance Flow types definitions Pull Request resolved: https://github.com/facebook/react-native/pull/23192 Differential Revision: D13858907 Pulled By: cpojer fbshipit-source-id: 3633eb019eca2076bb68393b09d06555876f2c48
This commit is contained in:
parent
9a9370481f
commit
7ff9456f2e
|
@ -5,7 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
* @format
|
||||
* @flow
|
||||
* @flow strict-local
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
@ -205,9 +205,22 @@ type GestureResponderEventProps = $ReadOnly<{|
|
|||
onStartShouldSetResponderCapture?: ?(e: PressEvent) => boolean,
|
||||
|}>;
|
||||
|
||||
type AndroidDrawableThemeAttr = $ReadOnly<{|
|
||||
type: 'ThemeAttrAndroid',
|
||||
attribute: string,
|
||||
|}>;
|
||||
|
||||
type AndroidDrawableRipple = $ReadOnly<{|
|
||||
type: 'RippleAndroid',
|
||||
color?: ?number,
|
||||
borderless?: ?boolean,
|
||||
|}>;
|
||||
|
||||
type AndroidDrawable = AndroidDrawableThemeAttr | AndroidDrawableRipple;
|
||||
|
||||
type AndroidViewProps = $ReadOnly<{|
|
||||
nativeBackgroundAndroid?: ?Object,
|
||||
nativeForegroundAndroid?: ?Object,
|
||||
nativeBackgroundAndroid?: ?AndroidDrawable,
|
||||
nativeForegroundAndroid?: ?AndroidDrawable,
|
||||
|
||||
/**
|
||||
* Whether this `View` should render itself (and all of its children) into a
|
||||
|
|
Loading…
Reference in New Issue