Type issues with restyle component props
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react-native, typescript
- 領域
- mobile
調査の方向性
Reproduce the TypeScript compiler failure in createBox.ts and inspect the prop types used by the Box and Pressable patterns. Run the repository's type-checker to confirm the shown constraint error is resolved; done means a fresh clone no longer reports this failure.
索引モデルが issue の本文から書いたものです。
説明
I noticed that the TypeScript compiler produces an error in the createBox.ts file. At first I thought it was an issue in my code, but a fresh clone and open of restyle has the same issue.
I'm trying to make my own "Box" component for Pressable, so I was following the pattern of Box. I'm concerned because even if it works, I don't think it's a good idea to ship code that doesn't even pass the type-checker—it defeats the whole purpose.

Type 'BoxProps<Theme, EnableShorthand>' does not satisfy the constraint 'Record<string, unknown>'.
Type '(BackgroundColorProps<Theme> & OpacityProps<Theme> & VisibleProps<Theme> & LayoutProps<Theme> & ... 9 more ... & BackgroundColorShorthandProps<...>) | BaseBoxProps<...>' is not assignable to type 'Record<string, unknown>'.
Type 'BackgroundColorProps<Theme> & OpacityProps<Theme> & VisibleProps<Theme> & LayoutProps<Theme> & ... 9 more ... & BackgroundColorShorthandProps<...>' is not assignable to type 'Record<string, unknown>'.
Index signature for type 'string' is missing in type 'BackgroundColorProps<Theme> & OpacityProps<Theme> & VisibleProps<Theme> & LayoutProps<Theme> & ... 9 more ... & BackgroundColorShorthandProps<...>'.ts(2344)
- 主要言語
- TypeScript
- スター
- 3.4k
- フォーク
- 154
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Shopify/restyle のほかの issue
-
Reanimated 4.4.x animated components conflict with Restyle theme対応中かも @KAMRONBEK が 131 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Shopify/restyle の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
testing-library/jest-dom#749 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
zed-industries/delta-claude#50 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
CDLUC3/dmptool-doc#660 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
stripe/stripe-terminal-react-native#1162 ·
メンテナーはふだん 1 日以内に返信