question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do you think it's possible to get this working in the browser?

See original GitHub issue

I’m curious if you think it’s possible to get this working with react-native-web as well as a mobile device.

Would all I need to do is include react-native-web as a module in the wormhole and modify the babel output to support RNW?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cawfreecommented, Sep 30, 2021

Don’t get your hopes up. 😛

The thinking here was that Webpack should make the appropriate decision for us, so even though we’re saying require('react-native'), it should still just import react-native-web because that will have been rewritten.

1reaction
cawfreecommented, Sep 30, 2021

Hello! I think this should work fine in a browser. I don’t think there’s anything specific to the native runtime that we’re doing with this module.

Yes that’s right. react-native-web uses Webpack aliases to remap references from react-native to react-native-web, but since this happens at build time it means you’d probably have to emulate a similar behaviour at runtime when a Wormhole tries to resolve a dependency. So yeah, sounds like you hit the nail on the head.

You should be able to experiment with this directly using the Example App.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >
Learn how browsers are working together to make it easier to ...
Making a web application work in the same way across browsers can be hard. Learn why these interoperability problems happen, how browsers ......
Read more >
Internet Basics: Using a Web Browser - GCF Global
A web browser is a type of software that allows you to find and view websites on the Internet. Even if you didn't...
Read more >
Working in the Browser Sucks - Medium
Most of us love cloud software, but working in the browser can be cluttered and cumbersome. The proliferation of cloud software like Google ......
Read more >
How the web works - Learn web development - MDN Web Docs
So what happens, exactly? · The browser goes to the DNS server, and finds the real address of the server that the website...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found