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