-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
45 lines (38 loc) · 1007 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
41
42
43
44
45
import React, { Component } from 'react';
import {
AppRegistry,
Platform,
StyleSheet,
Text,
View,
YellowBox
} from 'react-native';
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);
import MainComponent from './app/components/MainComponent';
import WeatherInfo from "./app/components/WeatherInfo";
import {
createStackNavigator,
} from 'react-navigation';
const App = createStackNavigator({
Home: { screen: MainComponent},
WeatherInfo: { screen: WeatherInfo },
});
const styles = StyleSheet.create({
container: {
flex: 1,
},
title: {
position: 'absolute',
textAlign: 'center',
justifyContent: 'center',
lineHeight: 40,
alignContent: 'center',
backgroundColor: '#159cff',
color: '#ffffff',
width: '100%',
height: 40,
fontSize: 24,
fontWeight: 'bold'
},
});
AppRegistry.registerComponent('Weather', () => App);