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
This commit is contained in:
Eli White
2018-09-11 16:09:49 -07:00
committed by Hector Ramos
parent 7525f3804c
commit 499e20766c
@@ -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<ViewProps> | $Keys<____ViewStyle_Internal>,
$Keys<____ViewStyle_Internal>,
>;
const ViewNativeComponentAndroidConfig: Config = {
const ViewNativeComponentAndroidConfig = {
bubblingEventTypes: {
topChange: {
phasedRegistrationNames: {