-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.android.js
More file actions
37 lines (31 loc) · 794 Bytes
/
index.android.js
File metadata and controls
37 lines (31 loc) · 794 Bytes
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
import React, { Component } from 'react';
import {AppRegistry, Text, View, StyleSheet} from 'react-native';
class WithReactNative extends Component {
componentWillMount(){
console.log("componentWillMount:" + new Date().getTime());
}
componentDidMount(){
console.log("componentDidMount:" + new Date().getTime());
}
render() {
console.log("render start:" + new Date().getTime());
return (
<View style={style.container}>
<Text style={style.h1}>
Test Hello World
</Text>
</View>
);
}
}
const style = StyleSheet.create({
container:{
backgroundColor:"#FF4040FF"
},
h1:{
fontSize:35,
},
h2:{
fontSize:30,}
});
AppRegistry.registerComponent('WithReactNative', () => WithReactNative);