feat: UserEvent pullToRefresh()#1822
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1822 +/- ##
==========================================
- Coverage 98.56% 98.51% -0.06%
==========================================
Files 80 81 +1
Lines 1538 1547 +9
Branches 416 418 +2
==========================================
+ Hits 1516 1524 +8
- Misses 22 23 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| } | ||
|
|
||
| const refreshControl = element.props.refreshControl; | ||
| if (refreshControl == null || typeof refreshControl.props.onRefresh !== 'function') { |
There was a problem hiding this comment.
Bug: Refresh Control Access Error & Misleading Documentation
Accessing refreshControl.props.onRefresh can lead to a TypeError if refreshControl.props is null or undefined. Separately, the error message for pullToRefresh() is misleading, stating it only works with ScrollView elements when FlatList and SectionList are also supported.
a8f0ce4 to
4ae44b4
Compare
pullToRefresh() [WIP]pullToRefresh()
Summary
Test plan