react-everywhere / re-start

react-native template to target multiple platforms :globe_with_meridians: :iphone: :computer: with single codebase.
https://medium.com/@amoghbanta/write-once-use-everywhere-with-react-native-d6e575efe58e#.nfl50gwfg
MIT License
1.3k stars 85 forks source link

is there is bugs in initial project? #56

Open imspikey opened 6 years ago

imspikey commented 6 years ago

In the main web index.js

import {
    Platform,
    StyleSheet,
    ReactNative,
    Text,
    View
} from 'react-native';
....
ReactNative.render(<App />, document.getElementById('root'));

is this a bug in the code or Im missing somthing??!

the web code didn't run until I changed the index.js to this =>

import ReactDOM from 'react-dom'; ... ReactDOM.render(<App />, document.getElementById('root'));

also the app.js component had ReactNative as an import too and didnt include any export?!

Is this bugs or Im missing somthing?!