dva-example-react-native
dva-example-react-native copied to clipboard
Unable to resolve module react-dom from xx/node_modules/dva/lib/createDva.js
Found
Unable to resolve module react-dom from xx/node_modules/dva/lib/createDva.js
in "dva": "^1.2.1", "react": "15.4.2", "react-native": "0.40.0",
function render(container, store, app, router) {
const ReactDOM = require('react-dom');
ReactDOM.render(React.createElement(getProvider(store, app, router)), container);
}
React Native env need react-dom? How to solve it?
Thanks.
Yes, it's a problem with dva. We may resolve it in next version.
React Native env need react-dom?
No. dva depend on it, but it will not be used in project with react-native.
How to solve it?
Install react-dom dependency.
something goes to bad
this is my dependencies
so how to solve it?
请问dva 这个问题解决了么