Skip to content

How do I share components between react and react-native? #2397

Answered by necolas
robert-bitguild asked this question in Q&A
Discussion options

You must be logged in to vote

react-native-web is a web implementation of most of the react-native API. The documentation describes how it should be used as a package alias for react-native when bundling apps for the web. To create a cross-platform UI library, you can use the react-native package and API in the components, and then use react-native-web package aliasing to bundle the UI library for web.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by necolas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2396 on September 26, 2022 15:35.