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:
'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:
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!