Skip to content

chore: bump react-native-skia to 3.6.3, drop the web matchFamilyStyle patch - #40

Merged
michalsek merged 1 commit into
mainfrom
chore/react-native-skia-3.6.3
Oct 18, 2026
Merged

michalsek merged 1 commit into
mainfrom
chore/react-native-skia-3.6.3

Conversation

@michalsek

Copy link
Copy Markdown
Owner

Follow-up to VEX-19. Partly addresses VEX-45 (re-measuring on resize).

Summary

  • Bumps react-native-skia 3.0.3 → 3.6.3 in the root devDependencies and the example.
  • Removes example/patches/react-native-skia+3.0.3.patch and the example's postinstall / apply-patches scripts. The web TypefaceFontProvider.matchFamilyStyle fix the patch carried has been in upstream since 3.4.4.
  • README / CONTRIBUTING: web now needs react-native-skia ≥ 3.4.4 instead of the patch. The peer range stays >=3.0.0 because native is unaffected.

Skia 3.6 API changes

  • useCanvasSize() no longer takes a ref. It returns { size, onLayout }, and onLayout goes on <Canvas>. VexflowCanvas is switched over, so it now re-measures on every layout change, rotation included, instead of measuring once.
  • CanvasRef.makeImageSnapshotAsync was removed. The example's worklet diagnostics screen uses the sync makeImageSnapshot.

Verification

  • yarn typecheck: clean.
  • yarn lint: 0 errors (4 warnings, none in changed files).
  • yarn test: 337 tests pass.
  • yarn prepare: builds.
  • Not run on a device or simulator.

… patch

3.4.4+ ships the web TypefaceFontProvider.matchFamilyStyle fix upstream.
Adapts to the 3.6 Canvas API: useCanvasSize() takes no ref and returns
onLayout; makeImageSnapshotAsync is gone.
@michalsek
michalsek merged commit 9ccb6cf into main Oct 18, 2026
4 checks passed
@michalsek
michalsek deleted the chore/react-native-skia-3.6.3 branch October 18, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant