Generate RCTRefreshControlNativeType

Summary: Another component from https://fb.quip.com/aM59AkQ7At1K

Reviewed By: TheSavior

Differential Revision: D14404786

fbshipit-source-id: 29f2b675e9dd377ab03702feb5d23ba61c2f8c03
This commit is contained in:
Rick Hanlon
2019-03-13 06:22:13 -07:00
committed by Facebook Github Bot
parent bcd259a355
commit 8bedca849b

View File

@@ -0,0 +1,81 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/
'use strict';
import type {SchemaType} from '../../../packages/react-native-codegen/src/CodegenSchema.js';
const RCTRefreshControlNativeTypeSchema: SchemaType = {
modules: {
RCTRefreshControlNativeType: {
components: {
RCTRefreshControlNativeType: {
extendsProps: [
{
type: 'ReactNativeBuiltInType',
knownTypeName: 'ReactNativeCoreViewProps',
},
],
events: [
{
name: 'onRefresh',
optional: true,
bubblingType: 'bubble',
typeAnnotation: {
type: 'EventTypeAnnotation',
argument: {
type: 'ObjectTypeAnnotation',
properties: [],
},
},
},
],
props: [
{
name: 'tintColor',
optional: true,
typeAnnotation: {
type: 'NativePrimitiveTypeAnnotation',
name: 'ColorPrimitive',
},
},
{
name: 'titleColor',
optional: true,
typeAnnotation: {
type: 'NativePrimitiveTypeAnnotation',
name: 'ColorPrimitive',
},
},
{
name: 'title',
optional: true,
typeAnnotation: {
type: 'StringTypeAnnotation',
default: '',
},
},
{
name: 'refreshing',
optional: false,
typeAnnotation: {
type: 'BooleanTypeAnnotation',
default: false,
},
},
],
},
},
},
},
};
module.exports = RCTRefreshControlNativeTypeSchema;