Nightwatchjs native code example
Example 1: react native anination 2 valuse
Animated.parallel([
Animated.timing(this.state.opacity, {
toValue: 0,
duration: 300
}),
Animated.timing(this.state.height, {
toValue: 0,
duration: 300
})
]).start(() => {
});
Example 2: react native sovrapporre immagini
<View>
<Image
source={yourImageUrl}
resizeMode={'cover'}
style={{
width: 300,
height: 300
}}
/>
<View style={{ position: 'absolute', top: 0, left: 0, right: 0, height: 300, alignItems: 'center', justifyContent: 'center' }}>
<Text>Your overlay text</Text>
</View>
</View>