-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
I have this code in my render function.
<Animated.View
style={[styles.wrap, { left }]}
{...this.scrollResponder.panHandlers}
>
{initialRender &&
<View style={styles.wrap} {...this.listViewResponder.panHandlers}>
<ListView
ref={ref => this.listView = ref}
onScroll={this.handleScroll}
dataSource={posts}
renderRow={this.renderRow}
renderSectionHeader={this.renderHeader}
onEndReachedThreshold={300}
onEndReached={this.getPosts}
enableEmptySections={true}
refreshControl={
<RefreshControl
refreshing={refreshing}
onRefresh={this.onRefresh}
/>
}
/>
{!onProfile && this.renderSettings()}
</View>
}
{this.renderComments()}
{loading && !refreshing && <Loading />}
</Animated.View>componentWillMount() {
this.listViewResponder = PanResponder.create({
onMoveShouldSetPanResponderCapture: this.setMove,
onPanResponderMove: this.handleMove,
onPanResponderRelease: this.handleMoveEnd,
onPanResponderTerminationRequest: () => false
});
this.scrollResponder = PanResponder.create({
onStartShouldSetPanResponderCapture: (e) => e.nativeEvent.pageY < THUMB_SIZE,
onPanResponderRelease: this.handlePress,
});
}It's works fine on iOS,
But on Android onPanResponderRelease doesn't calls every time.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.