-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
40 lines (33 loc) · 953 Bytes
/
index.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
import React, { Component, } from 'react'
import { View,
StyleSheet,
Dimensions,} from 'react-native'
import smsview from './smsview.js';
import Content from './content.js';
var {width, height} = Dimensions.get('window');
import { Router, Scene } from 'react-native-router-flux';
class Index extends Component {
static propTypes = {}
static defaultProps = {}
constructor(props) {
super(props)
this.state = {
}
}
render() {
return (
<Router key = "root">
<Scene key ="smsview" component = {smsview} title = "SMS Chúc Têt" initial = {true} titleStyle = {styles.TouText} />
<Scene key ="Content" component = {Content} title = {this.props.title} hideNavBar = {true} titleStyle = {styles.TouText}/>
</Router>
)
}
}
const styles = StyleSheet.create({
TouText : {
fontSize: 17,
width : width - 100,
textAlign: 'center',
},
});
export default Index