feat: add @cocso-ui/react-native-icons package#164
Conversation
Add React Native icon generation to the existing icon ecosystem. SVGs are transformed into react-native-svg components via a new codegen script, mirroring the established generate-react.ts pattern. - Add ecosystem/icons/scripts/generate-react-native.ts (SVG → RN TSX) - Add ecosystem/icons/templates/react-native/ (Icon wrapper + IconProps) - Add packages/react-native-icons/ (published package, re-exports from icons) - Update ecosystem/icons build pipeline and validation - Update AGENTS.md monorepo structure map Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a9c202bdb5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Review comment applied: |
- Create docs/project-react-native-icons.md per Documentation Policy - Update docs/project-icons.md with react-native codegen references Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Test Coverage
@cocso-ui/react — File Coverage
@cocso-ui/recipe — File Coverage
@cocso-ui/codegen — File Coverage
@cocso-ui/figma — File Coverage
@cocso-ui/baseframe — File Coverage
|
Visual Regression Report✅ All 108 snapshot(s) matched — no visual regressions. 108 screenshot(s) — all matching baseline
Generated by cocso-ui Visual Regression |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
75a0363 to
9994ea2
Compare
3cb92bc to
9994ea2
Compare
Summary
generate-react-native.ts) that transforms SVGs intoreact-native-svgcomponents@cocso-ui/react-native-iconspublished package with peer deps:react,react-native,react-native-svgChanges
ecosystem/icons/scripts/generate-react-native.ts— SVG → React Native TSX codegen (86 icons: 71 semantic + 15 brand)ecosystem/icons/templates/react-native/— Icon wrapper + IconProps (extendsSvgProps)packages/react-native-icons/— publishable package (Rollup CJS+ESM bundles)ecosystem/icons/package.json—./react-nativeexport, build pipelineecosystem/icons/scripts/validate.ts— React Native validation sectionAGENTS.md— monorepo structure map updatedUsage
Test plan
pnpm --filter @cocso-ui/icons build— 86 RN components generatedpnpm --filter @cocso-ui/icons validate— 5/5 checks passedpnpm --filter @cocso-ui/react-native-icons build— CJS/ESM + types builtpnpm --filter @cocso-ui/icons lint— cleanpnpm --filter @cocso-ui/react-native-icons lint— cleanpnpm build— full monorepo build 11/11 tasks passed🤖 Generated with Claude Code