-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReactSwipeRefreshLayout cannot be cast #8
Comments
The workaround this was: componentDidMount() {
this.setState({visibleRefreshControl: true})
}
render() {
const { visibleRefreshControl } = this.state;
return (<FlatList
//...
refreshControl={visibleRefreshControl ? refreshControl : null}
/>);
} Pretty interestingly what happens is actually findNodeHandle provided by react-native gets the RefreshControl node and attempts to cast it :? Pretty strange one indeed |
After some fine digging I found out a lot cleaner way of doing stuff
Reason for that change is basically it guarantees to retrieve always the correct scrolling ref and not some of the outer ones. I'll do a PR with this change |
@geo-vi thanks alot for investigating this. I will be able to look into this after wednesday. Will get back :) I can see that you raised a PR as well, could you please sync with latest |
Already did )) |
An interesting issue popped up today while using 0.0.5 version
The text was updated successfully, but these errors were encountered: