From 499e20766cff0c6ed21ece8d061c1c3d331ba33a Mon Sep 17 00:00:00 2001 From: Eli White Date: Wed, 22 Aug 2018 12:49:14 -0700 Subject: [PATCH] Put View ViewConfig in JS Summary: Moving this config to native for android so we skip the native lookup for the config. Reviewed By: yungsters Differential Revision: D9415726 fbshipit-source-id: 84cac3f0dfa4f6ea8800de77676f1e2896ee463d --- .../View/ViewNativeComponentAndroidConfig.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Libraries/Components/View/ViewNativeComponentAndroidConfig.js b/Libraries/Components/View/ViewNativeComponentAndroidConfig.js index b0fdf87f960..b53932025a5 100644 --- a/Libraries/Components/View/ViewNativeComponentAndroidConfig.js +++ b/Libraries/Components/View/ViewNativeComponentAndroidConfig.js @@ -14,18 +14,9 @@ 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}; -type Config = ReactNativeBaseComponentViewConfig< - $Keys | $Keys<____ViewStyle_Internal>, - $Keys<____ViewStyle_Internal>, ->; - -const ViewNativeComponentAndroidConfig: Config = { +const ViewNativeComponentAndroidConfig = { bubblingEventTypes: { topChange: { phasedRegistrationNames: {