• Version 1.0.13
  • Published
  • 39.8 kB
  • 2 dependencies
  • MIT license


npm i rmc-pull-to-refresh
yarn add rmc-pull-to-refresh
pnpm add rmc-pull-to-refresh


React Mobile Pull To Refresh Component



class PullToRefresh

class PullToRefresh extends React.Component<PropsType, any> {}

    property containerRef

    containerRef: any;

      property contentRef

      contentRef: any;

        property damping

        damping: (dy: number) => number;

          property defaultProps

          static defaultProps: PropsType;

            property destroy

            destroy: (ele: any) => void;

              property init

              init: (ele: any) => void;

                property isEdge

                isEdge: (ele: any, direction: string) => boolean | undefined;

                  property onTouchEnd

                  onTouchEnd: () => void;

                    property onTouchMove

                    onTouchMove: (ele: any, e: any) => void;

                      property onTouchStart

                      onTouchStart: (_ele: any, e: any) => void;

                        property reset

                        reset: () => void;

                          property setContentStyle

                          setContentStyle: (ty: number) => void;

                            property shouldUpdateChildren

                            shouldUpdateChildren: boolean;

                              property state

                              state: { currSt: string; dragOnEdge: boolean };

                                property triggerPullToRefresh

                                triggerPullToRefresh: () => void;

                                  method componentDidMount

                                  componentDidMount: () => void;

                                    method componentDidUpdate

                                    componentDidUpdate: (prevProps: any) => void;

                                      method componentWillUnmount

                                      componentWillUnmount: () => void;

                                        method render

                                        render: () => JSX.Element;

                                          method shouldComponentUpdate

                                          shouldComponentUpdate: (nextProps: any) => boolean;

                                            Package Files (2)

                                            Dependencies (2)

                                            Dev Dependencies (15)

                                            Peer Dependencies (0)

                                            No peer dependencies.


                                            To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                            You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/rmc-pull-to-refresh.

                                            • Markdown
                                            • HTML
                                              <a href="https://www.jsdocs.io/package/rmc-pull-to-refresh"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>