Migrate NativeComponentType from codegenNativeComponent to HostComponent #1

Summary:
We need to migrate to HostComponent, this is the first batch.

Changelog:
[Internal] Migrate NativeComponentType from codegenNativeComponent to HostComponent

Reviewed By: rickhanlonii

Differential Revision: D17562879

fbshipit-source-id: ce1993b64a79cede3598c89ddff0dadf07fde92f
This commit is contained in:
Eli White
2019-09-25 11:44:38 -07:00
committed by Facebook Github Bot
parent 89e3f70eab
commit 1b4eaeb184
12 changed files with 24 additions and 24 deletions
@@ -15,7 +15,7 @@ import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
import type {ViewProps} from '../View/ViewPropTypes';
import codegenNativeComponent from '../../Utilities/codegenNativeComponent';
import {type NativeComponentType} from '../../Utilities/codegenNativeComponent';
import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
type NativeProps = $ReadOnly<{|
...ViewProps,
@@ -46,4 +46,4 @@ type NativeProps = $ReadOnly<{|
export default (codegenNativeComponent<NativeProps>('PullToRefreshView', {
paperComponentName: 'RCTRefreshControl',
}): NativeComponentType<NativeProps>);
}): HostComponent<NativeProps>);