Cannot find index.ios.js login file in any of the roots

my reactive version: 0.24.0

index.ios.js:

require('./entry');

entry.js:

AppRegistry.registerComponent('movieView', () => require('./pages/movie'));

all my business documents are in the page directory. when starting a project, the error is as follows: enter image description here

+4
source share
2 answers

index.ios.js

 'use strict';
  require('./entry');

entry.js:

import React,
{AppRegistry, StyleSheet, Text, View } from 'react-native';

class movieView extends React.Component 
{

}

AppRegistry.registerComponent('movieView', () => movieView); 

Your question is not clear, and maybe the error you get is related to the namespace that you give for your file path. Hope this helps!

0
source

, , AwesomeProject, ? movieView? AwesomeProject. ios project AppDelegate.m.

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                             moduleName:@"AwesomeProject"
                                             initialProperties:nil 
                                             launchOptions:launchOptions];

moduleName:@"AwesomeProject" moduleName:@"movieView".

dev.

P.S. , , ?

0

All Articles