mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
89e3f70eab
commit
1b4eaeb184
@@ -11,7 +11,7 @@
|
||||
'use strict';
|
||||
|
||||
import codegenNativeComponent from '../../Utilities/codegenNativeComponent';
|
||||
import {type NativeComponentType} from '../../Utilities/codegenNativeComponent';
|
||||
import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
|
||||
|
||||
import type {
|
||||
DirectEventHandler,
|
||||
@@ -67,4 +67,4 @@ type NativeProps = $ReadOnly<{|
|
||||
|
||||
export default (codegenNativeComponent<NativeProps>(
|
||||
'AndroidSwipeRefreshLayout',
|
||||
): NativeComponentType<NativeProps>);
|
||||
): HostComponent<NativeProps>);
|
||||
|
||||
Reference in New Issue
Block a user