vite-plugin-react-native-web weekly downloads statistics
By Bram-dc · npm · Vite plugins
React Native Web support for Vite
vite-plugin-react-native-web has 321,249 recorded weekly downloads on npm, an increase of 83.6% over the past 30 days, ranking #456 of 3,247 tracked listings.
About vite-plugin-react-native-web
vite-plugin-react-native-web
Add React Native Web support to Vite by removing Flow types, aliasing react-native to react-native-web and transforming .js files as .jsx files using ESBuild.
Installation
Just install it:
npm i vite-plugin-react-native-web -D
Usage
import reactNativeWeb from "vite-plugin-react-native-web";
export default defineConfig({
plugins: [reactNativeWeb({ ... })],
});
If you are getting errors please report them in the issues section.
The following variables are defined in the transformed files: (inferred during Vite's build process)
globalasglobalThis__DEV__asprocess.env.NODE_ENV === 'development'process.env.NODE_ENVasprocess.env.NODE_ENVprocess.env.EXPO_OSas"web"
Peer Dependencies
This plugin requires react-native-web and inline-style-prefixer as peer dependencies. You must install them in the node_modules directory of the app where you use this plugin.
Note: If you are using pnpm or a workspace setup, peer dependencies may be installed in nested
node_modulesfolders by default. To avoid issues, ensure bothreact-native-webandinline-style-prefixerare installed in the app's ownnode_modulesdirectory:
pnpm add react-native-web inline-style-prefixer
Examples
- React + TypeScript + Vite + React Native Web Example
- React + TypeScript + Expo + Vite + React Native Web Example
Contributing
Please feel free to contribute to this project. Just fork it and submit a PR.
License
MIT
Description from the npm listing.
- vite
- vite-plugin
- plugin
- react-native
- react-native-web
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Vite plugins plugins
All 20 vite-plugin-react-native-web alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/vite-plugin-react-native-web. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.