The Wire · Showcase
REACT NATIVE FIXES CRITICAL IMAGE DIMENSION BUG, TYPESCRIPT 6 LANDS
By RepoJournal · Filed · About Meta
Image.getSize has been returning wildly wrong dimensions on Android for months — a fix just shipped that reads the actual encoded image instead of Fresco's downsampled bitmap.
The culprit: `Image.getSize` was reading dimensions from Fresco's decoded bitmap, which automatically downsamples large images to screen size [1]. A 4000x3000 image on a 1920x1080 device came back as 1920x1440. The fix switches to `fetchEncodedImage` to read true dimensions before any downsampling. If you've worked around this with manual dimension math, you can finally clean it up.
React Native also upgraded TypeScript to 6.0.3 [2] and aligned `typescript-eslint` across the codebase and Metro, preparing for the jump to TS 6.0 proper. This is internal-facing now but signals the team is moving fast — internal consistency before CLI template rollout.
On the stability front, a new C++ test landed that reproduces a use-after-free race in the Scheduler delegate during JS teardown , hardening the renderer pipeline. Separately, Pressability got a quiet bug fix: the hover-out timeout was being stored in the hover-in variable due to a copy-paste error , causing pointer and mouse events to behave differently.
Jest is patching holes in its own house. Two critical fixes shipped: reverting `node:` protocol imports that broke webpack and browser compatibility [3], and adding graceful fallback for test environments with older `moduleMocker` implementations that don't support `clearMocksOnScope` [4]. If your test setup feels fragile after recent Jest upgrades, these are your fixes.
Action items
- → If you use Image.getSize with large images, test immediately — dimensions are now accurate [ref:1] facebook/react-native [plan]
- → Upgrade Jest to pick up the webpack/browser compatibility fix [ref:6] facebook/jest [plan]
- → Check your custom test environment setup — Jest now requires clearMocksOnScope support [ref:7] facebook/jest [monitor]
References
- [1] Fix Image.getSize returning downsampled dimensions on Android (#56736) facebook/react-native
- [2] Upgrade TypeScript to ^6.0.3 (#56772) facebook/react-native
- [3] fix(expect): revert `node:` protocol imports to restore webpack/browser compatibility ↗ facebook/jest
- [4] fix: Support older test environments whose `moduleMocker` does not implement `clearMocksOnScope` (#16169) facebook/jest
FAQ
- What changed in Meta on May 13, 2026?
- Image.getSize has been returning wildly wrong dimensions on Android for months — a fix just shipped that reads the actual encoded image instead of Fresco's downsampled bitmap.
- What should Meta teams do about it?
- If you use Image.getSize with large images, test immediately — dimensions are now accurate [ref:1] • Upgrade Jest to pick up the webpack/browser compatibility fix [ref:6] • Check your custom test environment setup — Jest now requires clearMocksOnScope support [ref:7]
- Which Meta repositories shipped on May 13, 2026?
- facebook/react-native, facebook/jest