react-native-modal 状态栏变白

澹台浩广
2023-12-01

1、npm install react-native-modal-translucent --save

2、在package.json 中的 scripts 里面加入

"lint": "eslint .",
"fix-modal": "node node_modules/react-native-modal-translucent/scripts/translucent-modal.js",
"postinstall": "npm run fix-modal"
 类似资料: