Closed yyyyyyounger closed 4 months ago
嘗試Global State
/global.js module.exports = { screen1: null, }
./App.js import GLOBAL from "./global.js"; this.state = {xxx:null}; constructor() { super(); GLOBAL.screen1 = this; }
cd49fa49f2e3416142fd184b3efb7684d871f530
iOS用戶習慣後台常駐,系統深淺色模式切換時並不會開關APP 需要進一步監聽系統深淺色模式狀態