RN: Cleanup ViewConfig Types

Summary:
Cleans up the Flow types for React Native ViewConfig. After this diff, we will have two new canonical types:

- `ViewConfig` which is what we get from native and what is registered in the `ReactNativeViewConfigRegistry`.
- `PartialViewConfig` which is what we generate statically and augment at runtime before registering with the `ReactNativeViewConfigRegistry`.

Changelog:
[Internal]

Reviewed By: JoshuaGross

Differential Revision: D25075299

fbshipit-source-id: 4b53927b2db437b615447b711e83db355d0cfa55
This commit is contained in:
Tim Yung
2020-11-18 21:16:22 -08:00
committed by Facebook GitHub Bot
parent 69b4611049
commit e136aa3fc4
11 changed files with 47 additions and 82 deletions
@@ -11,7 +11,7 @@
'use strict';
import ReactNativeViewViewConfig from '../../Components/View/ReactNativeViewViewConfig';
import type {ReactNativeBaseComponentViewConfig} from '../../Renderer/shims/ReactNativeTypes';
import {type ViewConfig} from '../../Renderer/shims/ReactNativeTypes';
const AndroidTextInputViewConfig = {
uiViewClassName: 'AndroidTextInput',
@@ -111,4 +111,4 @@ const AndroidTextInputViewConfig = {
},
};
module.exports = (AndroidTextInputViewConfig: ReactNativeBaseComponentViewConfig<>);
module.exports = (AndroidTextInputViewConfig: ViewConfig);