Closed harveychow closed 3 years ago
[x] I read and followed the CONTRIBUTING.md guide.
There's an issue with the ListHeaderComponent (CommentList) where if you type in the input, the whole view is re-rendered when onChangeText is triggered. The solution is to call the renderHeader instead of passing the function to CommentList.
More info here: https://github.com/facebook/react-native/issues/13365#issuecomment-360491719
Please read and mark the following check list before creating a pull request:
[x] I read and followed the CONTRIBUTING.md guide.
Short description of what this resolves:
There's an issue with the ListHeaderComponent (CommentList) where if you type in the input, the whole view is re-rendered when onChangeText is triggered. The solution is to call the renderHeader instead of passing the function to CommentList.
More info here: https://github.com/facebook/react-native/issues/13365#issuecomment-360491719