JSPM

@tamagui/react-native-web-lite

1.118.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 83589
  • Score
    100M100P100Q165699F
  • License MIT

React Native for Web

Package Exports

  • @tamagui/react-native-web-lite
  • @tamagui/react-native-web-lite/dist/exports/StyleSheet/compiler/createReactDOMStyle
  • @tamagui/react-native-web-lite/package.json
  • @tamagui/react-native-web-lite/without-animated

Readme

Deprecated: ⚠️

Just use react-native-web, it's evolved enough to fix a few things and this has been left behind a bit.

Experiment!

Use at your own risk.

Slimming down react-native-web, this does the following:

  • Flow => Typescript
  • Full ESModule support
  • Vite compatibility
  • sideEffects: false + tree shaking support changes
  • merges concurrent mode fixes
  • merges the experimental fully concurrent safe / functional Animated
  • Removes:
    • ❌ VirtualList, FlatList, SectionList
    • ❌ Switch (going to be split out, in Tamagui already)
    • ❌ Touchable* views (prefer Pressable)
    • ❌ normalize-css-color
    • ❌ inline-style-prefixer
    • ❌ create-react-class

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

With webpack:

Alias the following

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