Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add react-native-web to our example #671

Closed
ferrannp opened this issue Nov 22, 2018 · 2 comments
Closed

Add react-native-web to our example #671

ferrannp opened this issue Nov 22, 2018 · 2 comments

Comments

@ferrannp
Copy link
Collaborator

No description provided.

@geminiyellow
Copy link

yep, hope we can get an example for react-native-web.
i think cause by react-native version, there are too much red warning when use this in react-native-web.

@amsb
Copy link

amsb commented Nov 29, 2018

I'm not sure if this is responsive to the issue, but we've been experimenting with react-native-web and found that while create-react-app will helpfully alias react-native-web, many react-native packages are not distributed in compiled form. For example, react-native-paper appears to work fairly well with react-native-web but can't be easily added to a create-react-app project. To fix this issue and allow continued experimentation, we forked create-react-app 2.1.1 and extended the webpack config to compile react-native-* packages in node_modules with the full suite of transforms, including JSX and stripping flow types. You can now easily get started consuming other react-native projects within a create-react-app by bootstrapping your app with the command (assuming you use npm 5.2+):

npx create-react-app --scripts-version=react-scripts-for-react-native-web my-app

More information here:

In the next few weeks we're hoping to create an example using more react-native-paper components.

NOTE: I also posted this as necolas/react-native-web#1192

satya164 added a commit that referenced this issue Jan 27, 2019
This example is missing the drawer, but all other examples are there. There are rendering issues with few components on the web. Hopefully this example will make it easier to identify these issues and fix them in future.
satya164 added a commit that referenced this issue Jan 27, 2019
This example is missing the drawer, but all other examples are there. There are rendering issues with few components on the web. Hopefully this example will make it easier to identify these issues and fix them in future.
satya164 added a commit that referenced this issue Jan 27, 2019
This example is missing the drawer, but all other examples are there. There are rendering issues with few components on the web. Hopefully this example will make it easier to identify these issues and fix them in future.
satya164 added a commit that referenced this issue Jan 27, 2019
This example is missing the drawer, but all other examples are there. There are rendering issues with few components on the web. Hopefully this example will make it easier to identify these issues and fix them in future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants