Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support for ts-pattern.match() inside worklets

オープン
#244 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react-native, typescript
領域
mobile-dev

調査の方向性

Start by reproducing the reported ts-pattern.match() failure inside a Reanimated worklet and trace how worklets handle closures and non-serializable logic. Review the worklet support and transformation entry points, then define how successful matching should behave on the UI thread and add coverage for the reported runtime error.

索引モデルが issue の本文から書いたものです。

説明

🧠 Feature Request: Support for ts-pattern.match() inside Reanimated worklets

I'm requesting support for using ts-pattern's match() function inside worklets

🧪 Current Behavior

Using ts-pattern.match inside a worklet results in the following runtime

ts-pattern.match() causes [Reanimated] Tried to synchronously call a non-worklet function on the UI thread
💡 Why This Matters
  • ts-pattern enables exhaustive, type-safe pattern matching in TypeScript.

  • Many developers reach for this library to improve control flow and readability, including in animations or shared UI logic.

  • However, worklet context throws errors because match() creates closures and uses non-serializable logic.

主要言語
C++
スター
791
フォーク
65
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

margelo/react-native-worklets-core のほかの issue

margelo/react-native-worklets-core の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。