-
Notifications
You must be signed in to change notification settings - Fork 1
/
Basic.js
33 lines (26 loc) · 792 Bytes
/
Basic.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
import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View } from 'react-native';
import Counter from './Counter.js';
export default class Basic extends Component{
constructor(props){
super(props);
}
render(){
return (
<View style={styles.bg}>
<Text style={styles.welcome}>React Native Counter!</Text>
<Counter
start = {250}
end = {1750}
time = {8000}
digits = {0}
style = {{ backgroundColor: '#555', color: '#fff', fontSize: 26, margin: 20, borderRadius: 4, textAlign: 'center', paddingVertical: 10 }}
/>
</View>
);
}
}
const styles = StyleSheet.create({
bg: { flex: 1, backgroundColor: '#eee' },
welcome: { backgroundColor: '#555', color: '#fff', textAlign: 'center', padding: 32, fontSize: 26 }
});