🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-native-web-lite

Package Overview
Dependencies
Maintainers
0
Versions
919
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-web-lite

React Native for Web

1.112.4
latest
prepub
Source
npm
Version published
Weekly downloads
10K
-9.52%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

react

FAQs

Package last updated on 29 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts