Closed yousif-bugsnag closed 3 months ago
NPM build
Package | |
---|---|
Before | 190.22 kB |
After | 190.22 kB |
± | No change |
CDN build
Unminified | Minfied | Minified + gzipped | |
---|---|---|---|
Before | 95.42 kB |
35.80 kB |
10.84 kB |
After | 95.42 kB |
35.80 kB |
10.84 kB |
± | No change | No change | No change |
Coverage values did not change👌.
Total:
Lines | Branches | Functions | Statements |
---|---|---|---|
87.13%(+0%) | 78.33%(+0%) | 88.06%(+0%) | 83.93%(+0%) |
Generated against b04e6e1ab477f6536b21c642fbb49fa8ee5e85bc on 3 July 2024 at 08:35:11 UTC
Goal
Support navigation refs created using
useRef
.Currently the React Navigation plugin expects the passed in navigation ref to be created with
useNavigationContainerRef
, and crashes if the ref was created withuseRef
, since in that casegetCurrentRoute
should be accessed viaref.current
.Design
the code now first checks if
ref.current
exists and then falls back to callinggetCurrentRoute
on the ref directly.