-
Notifications
You must be signed in to change notification settings - Fork 14
/
Sample.js
40 lines (38 loc) · 880 Bytes
/
Sample.js
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
// Intro.js
import React, {Component} from 'react';
import { StyleSheet, Text, View } from 'react-native';
import BlinkViewTest from './BlinkView';
const styles = StyleSheet.create({
container: {
alignItems: 'center',
backgroundColor: '#F5FCFF',
flex: 1,
justifyContent: 'center',
},
instructions: {
color: '#333333',
marginBottom: 5,
textAlign: 'center',
},
welcome: {
fontSize: 20,
margin: 10,
textAlign: 'center',
},
});
export default class Intro extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<BlinkViewTest binking={true} delay={2000}>
<Text style={styles.instructions}>
This is a React Native snapshot test.
</Text>
</BlinkViewTest>
</View>
);
}
}