mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Require all Android View Attributes are defined in flow prop types
Summary: This caught a few flow types that weren't defined for attributes that Android exposes. Ensuring that these stay in sync will be necessary for codegen in the future. Reviewed By: sahrens Differential Revision: D9444165 fbshipit-source-id: 8ee00af7b732c35d7f6befcdf79f77b73eac6a1b
This commit is contained in:
committed by
Facebook Github Bot
parent
158e9c4dde
commit
f5be89b8b9
@@ -14,9 +14,18 @@ const ReactNativeStyleAttributes = require('ReactNativeStyleAttributes');
|
||||
|
||||
const processColor = require('processColor');
|
||||
|
||||
import type {ViewProps} from 'ViewPropTypes';
|
||||
import type {____ViewStyle_Internal} from 'StyleSheetTypes';
|
||||
import type {ReactNativeBaseComponentViewConfig} from 'ReactNativeTypes';
|
||||
|
||||
const colorHandler = {diff: null, process: processColor};
|
||||
|
||||
const ViewNativeComponentAndroidConfig = {
|
||||
type Config = ReactNativeBaseComponentViewConfig<
|
||||
$Keys<ViewProps> | $Keys<____ViewStyle_Internal>,
|
||||
$Keys<____ViewStyle_Internal>,
|
||||
>;
|
||||
|
||||
const ViewNativeComponentAndroidConfig: Config = {
|
||||
bubblingEventTypes: {
|
||||
topChange: {
|
||||
phasedRegistrationNames: {
|
||||
|
||||
Reference in New Issue
Block a user