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

And this one with a promise

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>
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

And this one with a promise

I use it like described in the README: