React-native – Find the entrance file index.ios.js in any root directory

My local version: 0.24.0

index.ios.js:

 require('./entry');

entry.js:

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

All my business documents in the page directory. When I run the project, the error is displayed as follows:
enter image description here

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 , Maybe the error you get is because of the namespace you provided for the file path. Hope it will help!

My local version: 0.24.0

index.ios.js:

require('./entry');

entry.js:

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

All my business documents in the page directory. When I run the project, the error is displayed as follows:
enter image description here

index.ios.js

< /p>

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

entry.js:

< /p>

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

class movieView extends React.Component
{

}

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

Your question is not clear, maybe you get the error because The namespace you provided for the file path. Hope it helps!

Leave a Comment

Your email address will not be published.