@whop/create-react-native
v0.0.8
Published
Create a new React Native project for Whop
Readme
@whop/create-react-native
A powerful CLI tool to bootstrap your Whop React Native projects with best practices and latest dependencies.
Usage
npx @whop/create-react-nativeOr using pnpm:
pnpm create @whop/react-nativeFeatures
- 🚀 Interactive Setup - Guided project creation with customizable options
- 📦 Latest Dependencies - Automatically fetches and uses the latest versions of React, TypeScript, and Whop SDK
- 🔧 Environment Configuration - Built-in environment variable setup with Whop dashboard integration
- 📁 Smart Project Structure - Creates well-organized project structure from battle-tested template
- ✨ Developer Experience - Beautiful CLI with progress indicators and helpful instructions
- 🛡️ Error Handling - Comprehensive error handling and validation
What It Creates
The CLI creates a new React Native project with:
- Modern Dependencies: Latest React, TypeScript, and @whop/react-native
- Build Scripts: Pre-configured build, upload, clean, and ship commands
- Environment Setup: Automated .env.local creation with your Whop app credentials
- Project Structure: Organized source code with views and components
- TypeScript Config: Optimized TypeScript configuration for React Native
- Git Integration: Pre-configured .gitignore with common exclusions
Interactive Prompts
- Project Name: Choose your project name (automatically normalized for file systems)
- Description: Optional project description
- Author: Your name for package.json
- Environment Variables: Paste your Whop app credentials from the dashboard
Next Steps
After creation, the CLI provides clear instructions:
cd your-project-name
pnpm shipThis will build and deploy your app to see it working immediately!
Available Commands
Once your project is created, you can use these commands:
pnpm build- Build your apppnpm upload- Upload to Whoppnpm clean- Clean build filespnpm ship- Build and upload in one command
Requirements
- Node.js 18 or higher
- pnpm package manager
Getting Whop Credentials
- Visit https://whop.com/dashboard/developer
- Create a new app or select an existing one
- Copy the environment variables from the app settings
- Paste them when prompted by the CLI
License
MIT
