device.width获取屏幕宽度和高度结果为0,怎么解决
getScreenWidth: function(){
let baseUI = packageNameStartsWith("").depth(0).visibleToUser(true).findOne()
let width = baseUI.bounds().right
return width
},
getScreenHeight: function(){
let baseUI = packageNameStartsWith("").depth(0).visibleToUser(true).findOne()
let height = baseUI.bounds().bottom
return height
},