Fabric: Codegen for PullToRefresh component

Summary:
Straightforward.
Rick, I rename some stuff, I hope you are cool with that.

Reviewed By: mdvacca

Differential Revision: D15403306

fbshipit-source-id: 1dbd34060052a9bd39ed4211010f14b76fffcde6
This commit is contained in:
Valentin Shergin
2019-05-19 17:44:40 -07:00
committed by Facebook Github Bot
parent e8b2145263
commit f02feb8d38
10 changed files with 10 additions and 181 deletions
@@ -12,11 +12,11 @@
import type {SchemaType} from '../../../packages/react-native-codegen/src/CodegenSchema.js';
const RCTRefreshControlNativeTypeSchema: SchemaType = {
const PullToRefreshViewSchema: SchemaType = {
modules: {
RCTRefreshControlNativeType: {
PullToRefreshView: {
components: {
RCTRefreshControlNativeType: {
PullToRefreshView: {
extendsProps: [
{
type: 'ReactNativeBuiltInType',
@@ -27,7 +27,6 @@ const RCTRefreshControlNativeTypeSchema: SchemaType = {
{
name: 'onRefresh',
optional: true,
bubblingType: 'bubble',
typeAnnotation: {
type: 'EventTypeAnnotation',
@@ -78,4 +77,4 @@ const RCTRefreshControlNativeTypeSchema: SchemaType = {
},
};
module.exports = RCTRefreshControlNativeTypeSchema;
module.exports = PullToRefreshViewSchema;
@@ -43,8 +43,8 @@ export type NativeProps = $ReadOnly<{|
refreshing: boolean,
|}>;
type RCTRefreshControlNativeType = Class<NativeComponent<NativeProps>>;
type PullToRefreshView = Class<NativeComponent<NativeProps>>;
module.exports = ((requireNativeComponent(
'RCTRefreshControl',
): any): RCTRefreshControlNativeType);
): any): PullToRefreshView);