yusukeshib/react-pullrefresh

Spinner not showing for sibling pull-to-refresh action

Closed this issue · 4 comments

My structure

<Main>
    <Child1><Pull zIndex={10000} size={30} max={100} onRefresh={this.onPullRefresh} /></Child1>  
    <Child2><Pull zIndex={10000} size={30} max={100} onRefresh={this.onPullRefresh} /></Child2>
</Main>

Both onPullRefresh are working fine except that the child2 pull down refresh animations are not showing

Hi! I can't reproduce the error.
Please give me details.

@YusukeShibata
This is my website. You can see the feeds tab pull down to refresh is showing the spinner animation while the polls tab , page reloads but the animation doesnt show up.

<AppContainer>
	<HomeContainer>
		<FeedsContainer/>
		<PollsContainer/>
	</HomeContainer>
</AppContainer
class FeedsContainer extends Component {
	onPullRefresh = (next) => {
		//my api call
		next();
	};

        render() {
		return (
			<div>
				<Pull zIndex={10000} size={30} max={100} onRefresh={this.onPullRefresh} />
				//rest of the jsx part
			</div>
		)
	}
}
class PollsContainer extends Component {
	onPullRefresh = (next) => {
		//my api call
		next();
	};

        render() {
		return (
			<div>
				<Pull zIndex={10000} size={30} max={100} onRefresh={this.onPullRefresh} />
				//rest of the jsx part
			</div>
		)
	}
}

@YusukeShibata what is the crighteria for onRefresh to be called ?

@noushad-pp Fixed it. update module to 1.2.0 please.