Skip to content

v0.2.3 β€” πŸš€ Developer Experience & Ergonomics Upgrade

Choose a tag to compare

@github-actions github-actions released this 09 Nov 23:39
· 93 commits to main since this release

v0.2.3

πŸš€ Developer Experience & Ergonomics Upgrade

  • Import Alias Rewriting (nativra-cli):
    • Automatically transforms component imports to match custom project structure and path aliases configured in nativra.json (e.g. @/components/ui, ~/components, or relative paths).
    • Handles multi-line import statements and namespace imports seamlessly during nativra add and nativra update.
  • Auto-Dependency Installer (--install):
    • Added --install and --no-install flags to nativra add.
    • Automatically detects missing package dependencies and peer dependencies, prompting or executing installation using the project's native package manager (npx expo install, pnpm add, yarn add, bun add, or npm install).
  • Audit Tool Enhancements (nativra audit --fix):
    • Precise line and column numbers reported for every audit finding.
    • Detects allowFontScaling={false} accessibility violations.
    • Introduced --fix flag to automatically migrate legacy React Native <TouchableOpacity> to <Pressable> with preserved props.
  • Multi-Theme CSS Injection:
    • nativra theme add --as <name> --apply-css auto-generates CSS variable rules and injects named theme classes into global.css.
    • Added new theme presets including midnight and dark-slate.
  • 100% Component Contract Coverage:
    • @nativra/component-contracts now covers all 39 components (adding contracts for Badge, Card, Checkbox, Dialog, DropdownMenu, Progress, RadioGroup, Skeleton, Switch, Tabs, and Tooltip).
    • Standardized style?: StyleProp<ViewStyle> override and native prop forwarding across all components in both NativeWind and StyleSheet flavors.
  • Runnable Example Showcases:
    • Upgraded both examples/expo-nativewind and examples/expo-stylesheet into 4-tab interactive mobile showcase applications (Controls, Feedback, Layout, Forms).
    • Added strict TypeScript configs and verified clean typechecks.
  • Docs & Search Improvements:
    • Added keyboard navigation (↑/↓/Enter) and active item scrolling to documentation search dialog.
    • Synchronized component and block counts across all documentation pages and README.