ReactNative - 尝试分配给readonly属性

时间:2018-06-17 15:47:53

标签: android react-native

我正在尝试运行简单的反应本机代码:

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);

但它失败了:

enter image description here

"react": "16.0.0",
"react-native": "0.50.3"

0 个答案:

没有答案