react-native-web
npmv0.21.2React Native for Web
Adopt with care
react-native-web is usable, with caveats. Pulls in 25 transitive packages, about 5.1 MB installed (at least — some of the tree is still being crawled). MIT itself, but AGPL-3.0-or-later appears in the dependency tree.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 328 days ago. 5 releases in the last 2 years.
- CWeight: grade C, Fair — worth a look.
Pulls in 25 transitive packages, about 5.1 MB installed (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- CLicense: grade C, Fair — worth a look.
MIT itself, but AGPL-3.0-or-later appears in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding react-native-web to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing react-native-web, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the react-native-web README.
// Example component
import React from 'react';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
class App extends React.Component {
render() {
return (
<View style={styles.box}>
<Text style={styles.text}>Hello, world!</Text>
</View>
);
}
}
react-native-web vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| react-native-webthis page | 0 | 4 | MIT | 10 months ago |
| next | 40.6M | 0 | MIT | 1 day ago |
| @expo/config | 9.1M | 5 | MIT | 1 day ago |
| react-native-worklets | 5.2M | 4 | MIT | 1 day ago |
| react-native-reanimated | 0 | 4 | MIT | 1 day ago |
| @expo/config-types | 0 | 3 | MIT | 1 day ago |
Dependencies
Declared by react-native-web v0.21.2. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (8)
Used by
Popular packages that depend on react-native-web.
The Expo SDK
Error overlay for universal Expo apps.
Expo Router is a file-based router for React Native and web applications.
More powerful alternative to Animated library for React Native.
Relationship graph
Dependencies (left) and dependents (right) of react-native-web.
Frequently installed together
React is a JavaScript library for building user interfaces.
A framework for building native apps using React
Tools for making advanced Metro bundler features work
A WebView specifically designed for Expo DOM components
React package for working with the DOM.
Native navigation primitives for your React Native app.
Error overlay for universal Expo apps.
The Expo SDK
TypeScript definitions for react
Simple and complete React Native testing utilities that encourage good testing practices.
TypeScript definitions for node
Provides system information that remains constant throughout the lifetime of your app.
Release history
4 releases in the last two years, typically about 26 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.21.2latest | 10 months ago | 2.8 MB | MIT |
| 0.21.1 | 1 year ago | 2.8 MB | MIT |
| 0.21.0 | 1 year ago | 2.8 MB | MIT |
| 0.20.0 | 1 year ago | 2.8 MB | MIT |
| 0.19.13 | 1 year ago | 2.8 MB | MIT |
| 0.19.12 | 2 years ago | 2.8 MB | MIT |
| 0.19.11 | 2 years ago | 2.8 MB | MIT |
| 0.19.10 | 2 years ago | 2.8 MB | MIT |
| 0.0.0-dee1467a3 | 2 years ago | 2.8 MB | MIT |
| 0.19.9 | 3 years ago | 2.8 MB | MIT |
| 0.19.8 | 3 years ago | 2.8 MB | MIT |
| 0.19.7 | 3 years ago | 2.8 MB | MIT |
| 0.19.6 | 3 years ago | 2.8 MB | MIT |
| 0.19.5 | 3 years ago | 2.8 MB | MIT |
| 0.19.4 | 3 years ago | 2.8 MB | MIT |
Overview
react-native-web is an npm package that react Native for Web. It has 4 known dependents in the graph. The latest version is 0.21.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need react Native for Web and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use react-native-web?
react-native-web is usable, with caveats. Pulls in 25 transitive packages, about 5.1 MB installed (at least — some of the tree is still being crawled). MIT itself, but AGPL-3.0-or-later appears in the dependency tree.
How do I install react-native-web?
Run `npm install react-native-web` to add react-native-web to your npm project.
How many dependencies does react-native-web have?
react-native-web declares 10 direct dependencies and pulls in 25 packages in total once its runtime tree is resolved totalling about 5.1 MB on disk.
What license is react-native-web released under?
react-native-web is distributed under the MIT license. Its dependency tree also includes: AGPL-3.0-or-later, MIT.
How popular is react-native-web?
npm does not publish download counts. Within PackageGraph's crawl, 4 known packages depend on react-native-web.
Is react-native-web still maintained?
The most recent release of react-native-web (v0.21.2) was published 10 months ago.
Does react-native-web run install scripts?
No. react-native-web does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.