React-native-gifted-chat: [FEATURE-REQUEST] Scroll to bottom if you scrolled through messages

Created on 11 Jan 2018  路  5Comments  路  Source: FaridSafi/react-native-gifted-chat

Hello GiftedChat coders and users I'm working on a chat app since more than one month using this component. I would like to implement a feature like WhatsApp where the users can scroll down to the last message.

While you scrolling up there should appear a customizable View (like arrow down) to scroll down like in the screenshot below.

bildschirmfoto 2018-01-11 um 15 53 37

What Do you think? Anyone has some hints to this feature?

enhancement wontfix

Most helpful comment

I've already forked the project and implement it. I will provide a PR in the weekend.

All 5 comments

Can you provide a PR?

I've already forked the project and implement it. I will provide a PR in the weekend.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@mafiusu hey maf, thanks for the feature. But question, it says we can pass a scrollToBottomStyle but it's not used in the file, it's always using the stock styling in the renderScrollToBottomWrapper.

Shouldn't be like this by also passing the props styling this.props.scrollToBottomStyle?

<View style={[styles.scrollToBottomStyle, this.props.scrollToBottomStyle]}>
        <TouchableOpacity
          onPress={this.scrollToBottom}
          hitSlop={{ top: 5, left: 5, right: 5, bottom: 5 }}
        >
          {this.renderScrollBottomComponent()}
        </TouchableOpacity>
      </View>

Thanks in advance.

Created this PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasonwcfan picture jasonwcfan  路  3Comments

SytzeAndr picture SytzeAndr  路  3Comments

tafelito picture tafelito  路  3Comments

Hayko1994 picture Hayko1994  路  3Comments

arayaryoma picture arayaryoma  路  3Comments