JSPM

@tamagui/react-native-web-lite

2.0.0-001
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 73656
  • Score
    100M100P100Q165342F
  • License MIT

React Native for Web

Package Exports

  • @tamagui/react-native-web-lite
  • @tamagui/react-native-web-lite/Libraries/Utilities/codegenNativeCommand
  • @tamagui/react-native-web-lite/Libraries/Utilities/codegenNativeComponent
  • @tamagui/react-native-web-lite/dist/AccessibilityInfo
  • @tamagui/react-native-web-lite/dist/ActivityIndicator
  • @tamagui/react-native-web-lite/dist/Alert
  • @tamagui/react-native-web-lite/dist/AppRegistry
  • @tamagui/react-native-web-lite/dist/AppState
  • @tamagui/react-native-web-lite/dist/Appearance
  • @tamagui/react-native-web-lite/dist/BackHandler
  • @tamagui/react-native-web-lite/dist/Clipboard
  • @tamagui/react-native-web-lite/dist/DeviceInfo
  • @tamagui/react-native-web-lite/dist/Dimensions
  • @tamagui/react-native-web-lite/dist/I18nManager
  • @tamagui/react-native-web-lite/dist/Image
  • @tamagui/react-native-web-lite/dist/ImageBackground
  • @tamagui/react-native-web-lite/dist/InteractionManager
  • @tamagui/react-native-web-lite/dist/Keyboard
  • @tamagui/react-native-web-lite/dist/KeyboardAvoidingView
  • @tamagui/react-native-web-lite/dist/Linking
  • @tamagui/react-native-web-lite/dist/LogBox
  • @tamagui/react-native-web-lite/dist/Modal
  • @tamagui/react-native-web-lite/dist/NativeModules
  • @tamagui/react-native-web-lite/dist/PanResponder
  • @tamagui/react-native-web-lite/dist/PixelRatio
  • @tamagui/react-native-web-lite/dist/Pressable
  • @tamagui/react-native-web-lite/dist/RefreshControl
  • @tamagui/react-native-web-lite/dist/SafeAreaView
  • @tamagui/react-native-web-lite/dist/ScrollView
  • @tamagui/react-native-web-lite/dist/Share
  • @tamagui/react-native-web-lite/dist/StatusBar
  • @tamagui/react-native-web-lite/dist/Text
  • @tamagui/react-native-web-lite/dist/TextInput
  • @tamagui/react-native-web-lite/dist/Vibration
  • @tamagui/react-native-web-lite/dist/View
  • @tamagui/react-native-web-lite/dist/createElement
  • @tamagui/react-native-web-lite/dist/exports/StyleSheet/compiler/createReactDOMStyle
  • @tamagui/react-native-web-lite/dist/render
  • @tamagui/react-native-web-lite/dist/useColorScheme
  • @tamagui/react-native-web-lite/dist/useLocaleContext
  • @tamagui/react-native-web-lite/dist/useWindowDimensions
  • @tamagui/react-native-web-lite/dist/vendor/react-native/Batchinator
  • @tamagui/react-native-web-lite/dist/vendor/react-native/FillRateHelper
  • @tamagui/react-native-web-lite/dist/vendor/react-native/FlatList
  • @tamagui/react-native-web-lite/dist/vendor/react-native/JSEventLoopWatchdog
  • @tamagui/react-native-web-lite/dist/vendor/react-native/LayoutAnimation
  • @tamagui/react-native-web-lite/dist/vendor/react-native/PanResponder
  • @tamagui/react-native-web-lite/dist/vendor/react-native/PooledClass
  • @tamagui/react-native-web-lite/dist/vendor/react-native/SectionList
  • @tamagui/react-native-web-lite/dist/vendor/react-native/StaticContainer
  • @tamagui/react-native-web-lite/dist/vendor/react-native/StaticRenderer
  • @tamagui/react-native-web-lite/dist/vendor/react-native/TouchHistoryMath
  • @tamagui/react-native-web-lite/dist/vendor/react-native/ViewabilityHelper
  • @tamagui/react-native-web-lite/dist/vendor/react-native/VirtualizeUtils
  • @tamagui/react-native-web-lite/dist/vendor/react-native/VirtualizedList
  • @tamagui/react-native-web-lite/dist/vendor/react-native/VirtualizedSectionList
  • @tamagui/react-native-web-lite/dist/vendor/react-native/deepDiffer
  • @tamagui/react-native-web-lite/dist/vendor/react-native/infoLog
  • @tamagui/react-native-web-lite/package.json
  • @tamagui/react-native-web-lite/without-animated

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tamagui/react-native-web-lite) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-web-lite

A tree-shakeable fork of react-native-web that replaces the style engine with simple inline styles.

What is this?

This package keeps all the API surfaces of react-native-web, but makes them fully tree-shakeable by replacing the style engine with a simple inline style system.

This is ideal if you're using an alternative style engine (like Tamagui, StyleX, etc.) and just want react-native API compatibility for non-style concerns.

Trade-offs

Because the style engine is replaced with inline styles, descendant-based styles are not supported. This means things like pointerEvents="box-none" won't work as expected since they rely on react-native-web's CSS-based styling system.

If you need full react-native-web style support, use react-native-web directly.

Features

  • Full ESModule support
  • Vite compatibility
  • sideEffects: false + full tree shaking support
  • TypeScript (converted from Flow)

Setup

@tamagui/next-plugin and @tamagui/vite-plugin have an option useReactNativeWebLite to help automatically set this up.

With webpack, alias the following:

  • react-native-web$ => react-native-web-lite
  • react-native-svg => @tamagui/react-native-svg