-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ios.js
37 lines (33 loc) · 854 Bytes
/
index.ios.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
'use strict';
var React = require('react-native');
var SearchPage = require('./SearchPage');
var styles = React.StyleSheet.create({
text: {
color: 'black',
backgroundColor: 'white',
fontSize: 30,
margin: 80
},
container: {
flex: 1
}
});
class HelloWorld extends React.Component {
render() {
return <React.Text style={styles.text}>Hello World (Again)</React.Text>;
}
}
class PropertyFinderApp extends React.Component {
render() {
return (
<React.NavigatorIOS
style={styles.container}
initialRoute={{
title: 'PropertyFinder',
component: SearchPage
}}
/>
)
}
}
React.AppRegistry.registerComponent('PropertyFinder', function() {return PropertyFinderApp});