1- import React , { Component } from 'react' ;
1+ // @flow
2+ import * as React from 'react' ;
23import {
34 AppRegistry ,
45 StyleSheet ,
56 Text ,
67 ScrollView ,
78 Dimensions ,
89 View ,
9- TouchableHighlight
10+ TouchableHighlight ,
1011} from 'react-native' ;
1112
12- import { Keyframes } from '@ptomasroos/ react-native-keyframes' ;
13+ import { Keyframes } from 'react-native-keyframes' ;
1314
14- class Scene1 extends Component {
15+ class Scene1 extends React . Component {
1516 componentDidMount ( ) {
1617 if ( this . flirtAnimation ) {
1718 this . flirtAnimation . start ( ) ;
@@ -30,24 +31,16 @@ class Scene1 extends Component {
3031 return (
3132 < ScrollView >
3233 < Keyframes
33- ref = { ref => this . likeAnimation = ref }
34+ ref = { ref => ( this . likeAnimation = ref ) }
3435 src = { require ( './like.kf.json' ) }
3536 style = { { width : 300 , height : 300 } }
3637 />
37- < Text style = { styles . welcome } >
38- Scene1
39- </ Text >
40- < Text style = { styles . welcome } >
41- Scene1
42- </ Text >
43- < Text style = { styles . welcome } >
44- Scene1
45- </ Text >
46- < Text style = { styles . welcome } >
47- Scene1
48- </ Text >
38+ < Text style = { styles . welcome } > Scene1</ Text >
39+ < Text style = { styles . welcome } > Scene1</ Text >
40+ < Text style = { styles . welcome } > Scene1</ Text >
41+ < Text style = { styles . welcome } > Scene1</ Text >
4942 < Keyframes
50- ref = { ref => this . flirtAnimation = ref }
43+ ref = { ref => ( this . flirtAnimation = ref ) }
5144 src = { require ( './flirt.kf.json' ) }
5245 style = { { width : 300 , height : 300 } }
5346 />
@@ -65,38 +58,22 @@ class Scene1 extends Component {
6558 < Text > Play once</ Text >
6659 </ TouchableHighlight >
6760 </ View >
68- < Text style = { styles . welcome } >
69- Scene1
70- </ Text >
61+ < Text style = { styles . welcome } > Scene1</ Text >
7162 < TouchableHighlight onPress = { ( ) => this . props . changeScene ( 'Scene2' ) } >
7263 < Text > Go to Scene2</ Text >
7364 </ TouchableHighlight >
74- < Text style = { styles . welcome } >
75- Scene1
76- </ Text >
65+ < Text style = { styles . welcome } > Scene1</ Text >
7766 < Keyframes
78- ref = { ref => this . nearAnimation = ref }
67+ ref = { ref => ( this . nearAnimation = ref ) }
7968 src = { require ( './near-you.kf.json' ) }
8069 style = { { width : 300 , height : 300 } }
8170 />
82- < Text style = { styles . welcome } >
83- Scene1
84- </ Text >
85- < Text style = { styles . welcome } >
86- Scene1
87- </ Text >
88- < Text style = { styles . welcome } >
89- Scene1
90- </ Text >
91- < Text style = { styles . welcome } >
92- Scene1
93- </ Text >
94- < Text style = { styles . welcome } >
95- Scene1
96- </ Text >
97- < Text style = { styles . welcome } >
98- Scene1
99- </ Text >
71+ < Text style = { styles . welcome } > Scene1</ Text >
72+ < Text style = { styles . welcome } > Scene1</ Text >
73+ < Text style = { styles . welcome } > Scene1</ Text >
74+ < Text style = { styles . welcome } > Scene1</ Text >
75+ < Text style = { styles . welcome } > Scene1</ Text >
76+ < Text style = { styles . welcome } > Scene1</ Text >
10077 </ ScrollView >
10178 ) ;
10279 }
@@ -105,13 +82,13 @@ class Scene1 extends Component {
10582const styles = StyleSheet . create ( {
10683 container : {
10784 flex : 1 ,
108- backgroundColor : '#F5FCFF'
85+ backgroundColor : '#F5FCFF' ,
10986 } ,
11087 welcome : {
11188 fontSize : 20 ,
11289 textAlign : 'center' ,
113- margin : 10
114- }
90+ margin : 10 ,
91+ } ,
11592} ) ;
11693
11794export default Scene1 ;
0 commit comments