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

iOS not running #30

Closed anthonycmain closed 6 years ago

anthonycmain commented 6 years ago

I've just tried running a fresh installation from the README. The web version seems to run up fine, but the iOS version has AppRegistry issues

screen shot 2017-09-30 at 10 09 04
hggz commented 6 years ago

same :(

amoghbanta commented 6 years ago

can you please share how your package.json looks like, that might help figure out the issue.

anthonycmain commented 6 years ago

Sorry previous upload was wrong.

Here is mine, I made no further changes to it other than the Create Scripts

package.json.txt

Evaske commented 6 years ago

@anthonycmain @hgonzalez94 Had the same issue. I started a project with the folder name EveryWhereTest. For some reason, it called the component in index.ios.js only "everywhere" so that it was complaining that EveryWhereTest wasn't registered.

Have a look in your index.ios.js and make sure that the three locations in your case say TDAppFramework.

export default class TDAppFramework extends Component {
    render() {
        return  <App/>;
    }
}
AppRegistry.registerComponent('TDAppFramework', () => TDAppFramework);

I suspect it has probably done it as something like tdapp instead.

amoghbanta commented 6 years ago

This should be fixed with the latest template.

react-native init projectName --template re-start
cd projectName
node scripts/additionalDependencies.js