谢谢你从现在开始的回答,
我是一个React Native岁的新手,我想做一个跨平台的应用程序,所以我创建了索引.js:
import React from 'react';
import {
Component,
View,
Text,
} from 'react-native';
class ReactApp extends Component {
render() {
return (
<View><Text>Hello world</Text></View>
);
}
}
module.exports = ReactApp;
然后我导入了索引.两个索引中的js.网间网操作系统.js和索引.安卓就像这样:
import { AppRegistry } from 'react-native';
import ReactApp from './index';
AppRegistry.registerComponent('ReactApp', () => ReactApp);
我想在这之后它应该会起作用,但我明白了