-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
61 lines (52 loc) · 1.09 KB
/
App.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React from 'react';
import {
StyleSheet,
ScrollView,
View,
Text,
} from 'react-native';
import GetSentiment from './components/GetSentiment';
const App = () => {
return (
<View style={styles.back}>
<ScrollView style={styles.container}>
<Text style={styles.welcome}>Tweet Sentiments!</Text>
<GetSentiment fetchSentiment={this.fetchSentimentHandler}></GetSentiment>
</ScrollView>
</View>
);
};
const styles = StyleSheet.create({
back: {
backgroundColor: '#00aced',
alignItems: 'center',
flex: 1,
},
container: {
marginVertical: 60,
elevation: 20,
marginHorizontal: 20,
backgroundColor: '#FFFFFF',
height: '90%',
width: '90%',
borderRadius: 15,
shadowOpacity: 0.8,
shadowRadius: 30,
shadowColor: '#005',
shadowOffset: { height: 30, width: 30 },
},
welcome: {
fontSize: 40,
textAlign: 'center',
marginTop: 10,
fontFamily: 'Helvetica Neue'
}
});
export default App;