惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
罗磊的独立博客
V
V2EX
Vercel News
Vercel News
Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tailwind CSS Blog
I
InfoQ
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
H
Help Net Security
腾讯CDC
D
Docker
P
Proofpoint News Feed
GbyAI
GbyAI
博客园 - 三生石上(FineUI控件)
aimingoo的专栏
aimingoo的专栏

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I built a VS Code extension that scaffolds React Native M...
Fouzia Naaz · 2026-04-24 · via DEV Community

Fouzia Naaz

Every React Native developer knows this ritual.

You need a new screen. So you open an existing feature folder, copy the files, rename them one by one, fix the broken imports, delete the leftover logic, and spend 15 minutes doing work that has nothing to do with what you actually wanted to build.

I got tired of it. So I built a VS Code extension to fix it.

What it does

React Native MVVM Feature Generator scaffolds a complete MVVM feature folder with one command.

You hit Cmd+Shift+P, type a name like Checkout, and get:

src/features/Checkout/
├── CheckoutView.tsx
├── useCheckoutViewModel.ts
├── checkoutService.ts
├── checkoutTypes.ts
├── CheckoutView.test.tsx
├── useCheckoutViewModel.test.ts
└── index.ts

Every file is pre-wired. The View imports the ViewModel. The ViewModel imports the Service. The Service imports the Types. Zero circular dependencies, zero manual setup.

The problem it solves
On any organised React Native project, every feature needs the same four files. The structure is always the same. The naming convention is always the same. Yet every developer does it slightly differently and every new screen starts with a copy-paste ritual.

What I built into it
5 state adapters — when creating a feature you pick your state library. It generates a ViewModel tailored to useState, Zustand, Redux Toolkit, TanStack Query, or Jotai. Set a default in settings so you're never prompted.

Test files by default — every feature ships with a ViewModel unit test and a View render test already written. Most scaffolders skip this. Shipping tests by default changes the default.

Navigation registration — if @react-navigation/* is in your project, the extension offers to inject the new screen into your navigator file automatically.

Open Feature — a quick pick command that lists all your existing features and jumps straight to the View file. Turns the extension from a one-time generator into something you use every day.

Convert to MVVM — right-click any existing .tsx file and the extension extracts useState blocks into a ViewModel, fetch calls into a Service, and rewrites the original as a thin View. For teams adopting MVVM on an existing codebase.

Try it
Search "React Native MVVM Feature Generator" in the VS Code Extensions tab or install directly:

ext install fouzianaaz.rn-mvvm-feature-generator