我正在尝试运行简单的反应本机代码:
import React from 'react';
import { Text, AppRegistry } from 'react-native';
class HelloWorldApp extends React.Component {
render() {
return (
<Text>Hello world!</Text>
);
}
}
AppRegistry.registerComponent('ExchangeApp', () => HelloWorldApp);
但它失败了:
"react": "16.0.0",
"react-native": "0.50.3"