create-rn-feature-app
v1.0.1
Published
Create an Expo Router app with a scalable feature-based React Native architecture.
Maintainers
Readme
create-rn-feature-app
Create an Expo Router TypeScript application with a practical, feature-based architecture.
npx create-rn-feature-app my-appThe CLI creates the Expo app, asks which optional integrations to include, then writes src/app, core services, stores, reusable UI, aliases, environment files, and example auth/home screens.
Expo's own interactive setup runs during generation, so you can choose from the SDK/template options it presents (for example SDK 54, 55, or 56 when available). The CLI prints four explicit stages: Expo creation, native dependency installation, JavaScript dependency installation, and architecture generation.
Every generated TypeScript and configuration file is formatted automatically with Prettier. The generated app includes prettier.config.cjs, so later changes can use npx prettier --write ..
The generator explicitly runs npx expo install babel-preset-expo --dev to keep the Babel preset aligned with the chosen Expo SDK.
When NativeWind is selected, the generator uses the NativeWind v4-compatible Babel preset configuration and installs nativewind@^4.1.23 with tailwindcss@^3.4.17.
Included foundations
- Expo Router with routes in
src/app - Axios, AsyncStorage, environment configuration, feature folders, Zustand stores
- Optional NativeWind, TanStack Query, and a required choice of React Hook Form + Zod or Formik + Yup; plus Haptics, SVG imports, NetInfo offline UI, and Secure Store
Development
npm install
npm link
create-rn-feature-app example-appPublishing
Update the repository metadata and version in package.json, then run:
npm login
npm publish --access publicprepublishOnly runs the package test command before publishing. Add release notes and use npm version patch|minor|major for subsequent releases.
