react-native 怎么實現遮罩層
1 回答

有只小跳蛙
TA貢獻1824條經驗 獲得超8個贊
創建一個Animated.Value
[javascript] view plain copy
<Animated.View style={ styles.mask } >
</Animated.View>
<Animated.View style={[styles.tip , {transform: [{
translateY: this.state.offset.interpolate({
inputRange: [0, 1],
outputRange: [height, (height-aHeight -34)]
}),
}]
}]}>
lt;/Animated.View>
- 1 回答
- 0 關注
- 2521 瀏覽
添加回答
舉報
0/150
提交
取消