Repository navigation
Expand file tree
/
Copy pathScene4.js
More file actions
61 lines (59 loc) · 1.37 KB
/
Copy pathScene4.js
File metadata and controls
61 lines (59 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import React from "react";
import { StyleSheet } from "react-native";
import * as MagicMove from "./magic-move";
import * as Animatable from "react-native-animatable";
const styles = StyleSheet.create({
container: {
flex: 1
},
background: {
flex: 1,
backgroundColor: "blueviolet",
justifyContent: "center"
},
title: {
alignSelf: "center",
textAlign: "center",
color: "white",
fontSize: 50
},
subTitle: {
textAlign: "center",
color: "rgba(255,255,255,0.5)",
fontWeight: "900",
fontSize: 19
},
text: {
margin: 24,
textAlign: "center",
color: "white",
fontWeight: "bold",
fontSize: 19,
lineHeight: 24
}
});
export default class Scene4 extends React.Component {
render() {
return (
<MagicMove.Scene style={styles.container}>
<MagicMove.View id="scene4" style={styles.background} useNativeDriver>
<MagicMove.Text
id="scene4.title"
style={styles.title}
useNativeDriver
>
Magic Move
</MagicMove.Text>
<Animatable.Text
style={styles.text}
animation="fadeInUp"
delay={400}
duration={500}
>
Magically animate your component from one scene to another.
</Animatable.Text>
</MagicMove.View>
</MagicMove.Scene>
);
}
}