Skip to content

Cannot read property 'number' of undefined #25

Description

@natterstefan

Hi,

I get the following errors (in Android), after installing your package with npm i react-native-pull-to-refresh --save:

I got this one when onRefresh just logs something with console.log
image

And this one with a promise
image

I use it like described in the README:

   import PTRView from 'react-native-pull-to-refresh'

  refresh () {
    return new Promise((resolve) => {
      setTimeout(() => { resolve() }, 2000)
    })
  }

    <PTRView onRefresh={this.refresh} >
      (...)
   </PTRView>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions