• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

calintamas / react-native-toast-message / 34219643275
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix/autohide-after-hold
DEFAULT BRANCH: master
Ran 08 Sep 2026 11:15AM UTC
Jobs 1
Files 29
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Sep 2026 11:14AM UTC coverage: 100.0%. Remained the same
34219643275

push

github

web-flow
fix: re-run the slide animation when the target position changes (#606)

`translateY` is memoized on the target position, so it is rebuilt whenever
`keyboardHeight`, `bottomOffset` or `topOffset` changes. A rebuilt
interpolation is never driven though, because the layout effect that calls
`animate` depends only on `isVisible`, and `animate` itself is memoized on
`animationConfig`. The container therefore animates to its position once per
hide-to-show transition and keeps that transform for the rest of its life.

Two visible consequences:

- `avoidKeyboard` does nothing for a toast that is already on screen. The
  keyboard opens, the output range is recomputed, and the toast stays where
  it was, so the keyboard covers it.
- `Toast.show` called while a toast is visible keeps the previous toast's
  offset, because `isVisible` never flips. A caller that varies `bottomOffset`
  per screen gets the wrong one.

Adding the target-position inputs to that effect's deps drives the rebuilt
interpolation, and animates rather than jumps.

Measured on an iPhone 17 Pro simulator with `bottomOffset: 128` and a toast
pinned open: before, opening the keyboard left it at 706-746pt with the
keyboard top at 538pt; after, it moves to 488-528pt, which is
`screenHeight - max(bottomOffset, keyboardHeight + keyboardOffset)`. The
show-over-visible case is fixed on Android too, since it does not depend on
keyboard tracking.

134 of 134 branches covered (100.0%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

248 of 248 relevant lines covered (100.0%)

48.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 34219643275.1 08 Sep 2026 11:15AM UTC 55
100.0
GitHub Action Run
Source Files on build 34219643275
  • Tree
  • List 29
  • Changed 17
  • Source Changed 2
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34219643275
  • 25fc467c on github
  • Prev Build on v2.5.1 (#34219461878)
  • Next Build on main (#34219725036)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc