Skip to content

Cannot read property 'number' of undefined #25

@natterstefan

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>

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