mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
69b4611049
commit
e136aa3fc4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user