我正在使用干净的项目,我不能在我的代码的任何部分使用require,例如在Image中:
或者在这里使用react-native-router-flux插件的任何其他部分,我想覆盖后退按钮图像但我无法更改它因为'require'没有定义.
这是我的package.json
{ "name": "CleanProject", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "react": "15.4.2", "react-native": "0.40.0", "react-native-router-flux": "^3.37.0" }, "devDependencies": { "babel-eslint": "^7.1.1", "babel-jest": "18.0.0", "babel-preset-react-native": "1.9.1", "eslint": "^3.12.0", "eslint-plugin-react": "^6.8.0", "jest": "18.1.0", "react-test-renderer": "~15.4.0-rc.4" }, "jest": { "preset": "react-native" } }
你有什么主意吗?