In callInContext the function parameter is not a valid worklet and cannot be called between contexts or from/to JS from/to a context.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript, react-native, typescript
- 領域
- mobile
調査の方向性
The reported entry points are Worklets.createRunInContextFn and callInContext; begin by reproducing the Expo 49 setup with the shown Babel plugins and checking how the function is transformed. Confirm completion when the fibonacci worklet can be invoked across contexts without the reported validity error.
索引モデルが issue の本文から書いたものです。
説明
While using:
function RealApp() {
const fibonacci = (num: number): number => {
'worklet';
if (num <= 1) return 1;
return fibonacci(num - 1) + fibonacci(num - 2);
};
const worklet = Worklets.createRunInContextFn(fibonacci);
worklet(50).then(result => {
console.log(`Fibonacci of 50 is ${result}`);
});
}
I get:
In callInContext the function parameter is not a valid worklet and cannot be called between contexts or from/to JS from/to a context.
Running:
Expo: 49
Babel:
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
'nativewind/babel',
'module:react-native-dotenv',
'react-native-worklets-core/plugin',
'react-native-reanimated/plugin',
['@babel/plugin-transform-flow-strip-types', { loose: true }],
['@babel/plugin-proposal-private-methods', { loose: true }],
],
};
};
I did rebuild, prebuild, clean cache, clean pods, removed node modules reinstalled etc..
- 主要言語
- C++
- スター
- 791
- フォーク
- 66
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
margelo/react-native-worklets-core のほかの issue
-
Worklets without captured variables are rejected as "Regular javascript function" when transpiled by react-native-worklets' Babel plugin対応中かも @wn-na が 3 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
margelo/react-native-worklets-core#271 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
margelo/react-native-worklets-core#269 · リアクション 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
margelo/react-native-worklets-core#268 · コメント 2 件 ·
margelo/react-native-worklets-core の issue をすべて見る
似ている issue
-
[Docs] CONTRIBUTING still says FreeType 2.14.3 and TabLabel.h says ImGui 1.92.9b after the bumps対応中かも @mgradwohl が今日担当しました。 オープンagent:WSL documentation LOW
難易度 1/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
cudf-polars feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 2 日以内に返信
-
(S1 - Need confirmation)
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CleverRaven/Cataclysm-DDA#89212 ·
メンテナーはふだん 1 日以内に返信
-
Status: Needs confirmation Status: Needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
a byte order mark at the start of a migration makes dbmate miss the up block対応中かも @Dem1241 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信