Skip to content
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

fix for _messageContainerRef === null #402

Merged
merged 1 commit into from
Mar 26, 2017
Merged

fix for _messageContainerRef === null #402

merged 1 commit into from
Mar 26, 2017

Conversation

scott-laursen
Copy link

Issue Description

After asking for permissions for the camera or gallery, then selecting a photo I get the error "null is not an object (evaluating 'this._messageContainerRef.scrollTo')" This is caused by the _messageContainerRef not having been set, which crashes the app.

This line of code fixes the issue without any side effects.

Additional Information

  • React Native version: 0.42.0
  • react-native-gifted-chat version: 0.1.3
  • Platform(s) (iOS, Android, or both?): iOS

@kfiroo kfiroo merged commit a8fe499 into FaridSafi:master Mar 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants