JSPM

react-native-web-internals

1.0.1-beta.190
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 16077
    • Score
      100M100P100Q124471F
    • License MIT

    React Native for Web

    Package Exports

    • react-native-web-internals
    • react-native-web-internals/package.json

    Readme

    Experiment!

    Use at your own risk.

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

    • Flow => Typescript
    • Full ESModule support
    • sideEffects: false for tree shaking
    • merges concurrent mode fixes
    • Removes:
      • ❌ VirtualList, FlatList, SectionList
      • ❌ Switch, Modal (going to be split out, in Tamagui already)
      • ❌ Touchable* views (going to be deprecated, 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
    • @tamagui/rnw => @tamagui/rnw-lite
    • react-native-svg => @tamagui/react-native-svg