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

index.android.js and ios missing #45

Closed albertparedandan closed 6 years ago

albertparedandan commented 6 years ago

Step 1: Are you in the right place?

Step 2: Describe your environment

Step 3: Describe the problem (try to include screenshots):

when i run react-native init projectname --template re-start, the files are generated but index.android.js and index.ios.js is missing. furthermore when i cd projectname and try to run the node scripts/devdependencies.js, it runs successfully until the end where it is trying to remove devdependencies and it says that devdependencies does not exist on my project directory. also, when i try to run react-native run-android it just says "unable to load script from assessts index.android.budle make sure your bundle is packaged correctly or you're running a packager server" on my device after running the apk.

Steps to reproduce:

  1. react-native init projectname --template re-start
  2. npm install, node scripts/devDependencies.js
  3. react-native run-android
omermindivanli commented 6 years ago

Hi Albert, They are not missing. In the React-Native 0.51, There is only one index.js file for ios, android and web. This template supports React 16 and React Native 0.51