我的本机版本:0.24.0 index.ios.js: require('./entry'); entry.js: AppRegistry.registerComponent('movieView', () = require('./pages/movie')); 我在页面目录中的所有业务文档.当我运行项目时,错误显示如下: in
index.ios.js:
require('./entry');
entry.js:
AppRegistry.registerComponent('movieView', () => require('./pages/movie'));
我在页面目录中的所有业务文档.当我运行项目时,错误显示如下:
'use strict'; require('./entry');
entry.js:
import React, {AppRegistry, StyleSheet, Text, View } from 'react-native'; class movieView extends React.Component { } AppRegistry.registerComponent('movieView', () => movieView);
您的问题不明确,也许您得到的错误是因为您为文件路径提供的命名空间.希望它会有所帮助!