Skip to content

Cross-platform React UI packages - forked for ongoing maintenance

License

Notifications You must be signed in to change notification settings

quantizor/react-native-web-fork

 
 

Repository files navigation

THIS IS A FORK. It will differ from react-native-web in some ways because I am incorporating various community PRs that have been sitting for some time.

# to install, simply alias your existing setup to the fork npm install react-native-web@npm:react-native-web-fork

Merged changes:

  • Fix: Multiline Text though clipped can be scrolled into view (necolas#2584) thanks @tienifr
  • Implement maintainVisibleContentPosition (necolas#2588) thanks @janicduplessis
  • Add Image.resolveAssetSource (necolas#2728) thanks @scottmas
  • fix: support for react 19 and next15 (necolas#2731) thanks @Viraj-10
  • refactor(deps): removing fbjs dependency by creating a local module for invariant and warning (necolas#2727) thanks @mateoguzmana
  • Add ...children rest parameter to unstable_createElement (necolas#2761) thanks @faceyspacey
  • inline-style-prefixer version bump (necolas#2764) thanks @karmatys8
  • [ImageLoader] Simplify getSize implementation, call failure callback when decoding fails (necolas#2750) thanks @lkinasiewicz

React Native for Web

npm versionPRs Welcome

"React Native for Web" makes it possible to run React Native components and APIs on the web using React DOM.

Documentation

The documentation site (source) covers installation, guides, and APIs.

Example

The examples app (source) demonstrates many available features. Fork the codesandbox to make changes and see the results.

You'll notice that there is no reference to react-dom in components. The App component that is shown below is defined using the APIs and Components of React Native, but it can also be rendered on the web using React Native for Web.

// Example componentimportReactfrom'react';import{AppRegistry,StyleSheet,Text,View}from'react-native';classAppextendsReact.Component{render(){return(<Viewstyle={styles.box}><Textstyle={styles.text}>Hello, world!</Text></View>);}}conststyles=StyleSheet.create({box: {padding: 10},text: {fontWeight: 'bold'}});AppRegistry.registerComponent('App',()=>App);AppRegistry.runApplication('App',{rootTag: document.getElementById('react-root')});

Contributing

Development happens in the open on GitHub and we are grateful for contributions including bugfixes, improvements, and ideas. Read below to learn how you can take part in improving React Native for Web.

Code of conduct

This project expects all participants to adhere to Meta's OSS [Code of Conduct][code-of-conduct]. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing guide

Read the contributing guide to learn about the development process, how to propose bugfixes and improvements, and how to build and test your changes to React Native for Web.

Good first issues

To help you get you familiar with the contribution process, there is a list of [good first issues][good-first-issue-url] that contain bugs which have a relatively limited scope. This is a great place to get started.

License

React Native for Web is MIT licensed. By contributing to React Native for Web, you agree that your contributions will be licensed under its MIT license.

About

Cross-platform React UI packages - forked for ongoing maintenance

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages

  • JavaScript83.2%
  • CSS9.1%
  • HTML7.7%
close