在将react-native应用程序升级到androidx时,我使用以下代码创建了react-native.config.js文件:
module.exports = {
project: {
ios: {},
android: {},
},
assets: ['./path-to-assets'],
commands: require('./path-to-commands.js'),
};
module.exports = {
dependency: {
platforms: {
ios: {},
android: {},
},
assets: ['./path-to-assets'],
hooks: {
prelink: './path-to-a-prelink-hook',
},
},
};
module.exports = {
platforms: {
windows: require('./local-cli/platform.js').windows,
},
};
现在react-native run-android命令不起作用