TS error: When I use position restyleFunctions
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- react-native, typescript
- 领域
- mobile
调研方向
Reproduce the reported composeRestyleFunctions snippet with @shopify/restyle 2.4.2, React Native 0.71.9, and TypeScript 4.8.4; the issue does not name a source file or test. Trace the type definitions used by spacing, layout, and position, and consider the work done when this example compiles without the reported TypeScript error.
由索引模型根据 Issue 内容生成。
描述
Current behavior
Hello, I got this error:
My code:
export type BaseIconProps = LayoutProps<Theme> & SpacingProps<Theme> & PositionProps<Theme>;
const restyleFunctions = composeRestyleFunctions<Theme, BaseIconProps>([spacing, layout, position]);
Expected behavior
No error:)
Platform:
- iOS
- Android
Environment
"react": "18.2.0",
"react-native": "0.71.9",
"@shopify/restyle": "^2.4.2",
"typescript": "~4.8.4"
- 主要语言
- TypeScript
- 星标
- 3.4k
- 派生
- 154
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
相似的 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 天内回复