vincentriemer / react-native-dom

An experimental, comprehensive port of React Native to the web.
https://rntester.now.sh
MIT License
3.25k stars 73 forks source link

Expo support #54

Closed kross77 closed 6 years ago

kross77 commented 6 years ago

Hello, i'm trying to run my react-native-scripts project and have the issues. First, the command run the, (review the node package) react-native run-dom --port=19000, but he don't recognize this option But i can run the packager on 8081 port

Second, i'm not sure that is related with first issue. When i'm starting i've the error: bundling failed: Error: Unable to resolve module "./BarCodeScanner" from "/node_modules/expo/src/Expo.js": The module "./BarCodeScanner" could not be found from "node_modules/expo/src/Expo.js". Indeed, none of these files exist: In Expo BarCodeScanner we have the file with extension BarCodeScanner.web.js, so it is good to support compilation for this one.

vincentriemer commented 6 years ago

It's actually the other way around, this project can technically "support" expo but expo does not support the dom platform.

kross77 commented 6 years ago

Could you say more about technically support?

vincentriemer commented 6 years ago

Expo needs to port its native modules to rndom, and since rndom has a native module system it is possible to do. Porting the expo modules to the web is out of the scope of this project.

On Sun, Jun 3, 2018 at 9:04 AM Ales Krasouski notifications@github.com wrote:

Could you say more about technically support?

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/vincentriemer/react-native-dom/issues/54#issuecomment-394161046, or mute the thread https://github.com/notifications/unsubscribe-auth/ABVXGxQjCqdQbrZImuphHvM52hUkQS1Hks5t497LgaJpZM4UYA9e .

kross77 commented 6 years ago

@vincentriemer But expo has support for the web platform, what i'm request, not support all features from framework, but do the demo what is run with expo framework. For my point, now it is supporting the compiling the files with extension .web.js, and i can't find where i can do it in your code, may be you show the place or file where i can add this support.

vincentriemer commented 6 years ago

This project uses dom.js not web.js because platform-specific code written for RNW is incompatible with RND

kross77 commented 6 years ago

Thanks for reply.