我創建了一個新的React Native項目並在項目中安裝了@ shoutem/ui,並將Shoutem UI的Examples組件包含到了React Native應用程序中。未知的命名模塊:'react/lib/NativeMethodsMixin'
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import { Examples } from '@shoutem/ui';
class HelloWorld extends Component {
render() {
return (
<Examples />
);
}
}
AppRegistry.registerComponent('HelloWorld',() => HelloWorld);
但是當我運行啓動項目,我得到「未知命名模塊:'反應/ lib目錄/ NativeMethodsMixin」錯誤。
謝謝,那工作 – Kais