const marginRight = this.state.searchViewMargin.interpolate({
inputRange: [0, 80], // 当滚动条滚动到...const marginTop = this.state.searchViewMargin.interpolate({
inputRange: [0, 160], // 当滚动条滚动到..."箭头图标"在页面中的位置、宽高
this.arrowIcon.measure((x, y, width, height, pageX, pageY) => {...topOffset = pageY + height // 计算"下拉菜单"距离页面顶部的偏移量
this.dropdownMenu.show(topOffset, index) // 显示..."下拉菜单"
})
}
组件的 measure((x, y, width, height, pageX, pageY) => {}) 方法可以动态的获取组件在屏幕中的位置、宽高信息