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

[6.0] add react native web to the example app #170

Closed
dannyhw opened this issue May 11, 2021 · 1 comment · Fixed by #294
Closed

[6.0] add react native web to the example app #170

dannyhw opened this issue May 11, 2021 · 1 comment · Fixed by #294
Assignees
Labels

Comments

@dannyhw
Copy link
Member

dannyhw commented May 11, 2021

As part of the work by @oblador to remove no-hoisting we removed some of the example projects to slim down the project. This meant removing the expo example which had a web example.

We should add react-native-web to the example app and get something basic rendering.

There may be some changes needed in the project to make this work. Making this work with ondevice knobs will require #120 to be fixed so that should be considered out of the scope of this issue

@dannyhw dannyhw added the 6.5 label May 11, 2021
@dannyhw dannyhw mentioned this issue May 11, 2021
11 tasks
@dannyhw dannyhw added this to the 6.0.0-alpha.2 milestone Jul 11, 2021
@dannyhw
Copy link
Member Author

dannyhw commented Jul 26, 2021

Try https://aureliomerenda.medium.com/create-a-native-web-app-with-react-native-web-419acac86b82

If that doesn't work either change the example project to an expo one or you can try doing a more involved setup with custom webpack config.

Here is a guide with more custom webpack stuff that might be useful also (not tested this)
https://levelup.gitconnected.com/react-native-typescript-and-react-native-web-an-arduous-but-rewarding-journey-8f46090ca56b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant