-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApps.js
48 lines (42 loc) · 1.14 KB
/
Apps.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
import React, { Component, useState, setState } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
import NewsBlob from './app/components/NewsBlob/NewsBlob.component.js';
import ProfilePhoto from './app/components/ProfilePhoto/ProfilePhoto.component.js';
import WaterCounter from './app/components/WaterCounter/WaterCounter.component.js';
import Spacing from './app/utils/Spacing.component.js';
const UserInfo = () => {
const [details,setUserInfo] = useState(() => {
return ['Shivaditya','./app/assets/Images/profile.png']
})
return(
<ProfilePhoto uris = {details[1]} username = {details[0]}/>
)
};
class App extends Component {
UserInfo
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
<UserInfo />
<NewsBlob />
<Spacing spaceWidth={350} spaceHeight={20} />
<WaterCounter />
</Text>
</View>
);s
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: 'rgb(249, 235, 227)',
padding:22.5,
flexDirection: 'column',
justifyContent: 'space-between',
},
});
export default App;