This page lists what @rootnative/web ships today, what's planned, and what's out of scope.
The latest release is 0.0.13 on npm. The changelog lists the changes in each release.
What ships today
| Group | Exports |
|---|
| Components | View, Text, Image, ImageBackground, Pressable, TouchableHighlight, TouchableNativeFeedback, TouchableOpacity, TouchableWithoutFeedback, Button, ScrollView, FlatList, VirtualizedList, SectionList, VirtualizedSectionList, RefreshControl, TextInput, Switch, ActivityIndicator, Modal, KeyboardAvoidingView, SafeAreaView (deprecated, as in React Native), InputAccessoryView (renders nothing, as on Android), StatusBar |
| APIs | StyleSheet, Platform, Dimensions, useWindowDimensions, Appearance, useColorScheme, AppRegistry, AppState, Keyboard, Linking, Alert, Share, Vibration, Clipboard, AccessibilityInfo, I18nManager, BackHandler, PixelRatio, processColor, PanResponder, Animated, useAnimatedValue, useAnimatedValueXY, useAnimatedColor, Easing, LayoutAnimation, usePressability |
| Compat | unstable_createElement, findNodeHandle, TurboModuleRegistry, the native APIs AssetRegistry, DeviceEventEmitter, NativeEventEmitter, NativeModules, UIManager, and LogBox, and the entries @rootnative/web/assets-registry and @rootnative/web/style. Libraries import them, your app doesn't. Also the react-native-web props hrefAttrs and dataSet, which libraries send. |
| Web layer | Head, from @rootnative/web/dom |
| Tooling | @rootnative/web-expo, for an Expo app on Metro, also with Expo Router. @rootnative/web-metro, for a React Native app with no Expo on Metro, with rootnative-web build. rootnative(), the Vite plugin, from @rootnative/web/vite |
Planned, not written
Don't import these yet. They aren't in the package.
- Tooling: a Next.js plugin, and templates for a Vite app with and without server rendering.
Props that don't work yet
None. Each prop that React Native has on each platform works, except two that the web drops on purpose: accessibilityActions and onAccessibilityAction. See Accessibility props.
Out of scope
- The
react-native-web internals. Only @rootnative/web-expo has its file layout, for Expo's bundler.
- React 18, CommonJS, and Flow.
- Props that React Native doesn't have, except a small web-only set. Each page marks a web-only prop.
How it's tested
Every component and API has tests. They run in real browsers through Vitest browser mode, not in a simulated DOM: Chromium, Firefox, and WebKit, the engine of Safari.
Versions
@rootnative/web follows modified semver: a breaking change bumps the middle digit (0.1.0), and fixes and additions bump the last digit (0.0.2). The changelog lists each breaking change.