-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppbc.js
More file actions
48 lines (44 loc) · 973 Bytes
/
Appbc.js
File metadata and controls
48 lines (44 loc) · 973 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
38
39
40
41
42
43
44
45
46
47
48
import React from 'react';
import {
StyleSheet,
Button,
Image,
Text,
ImageBackground,
View
} from 'react-native';
export default class App extends React.Component {
press() {
alert('Hey... Whats Up!')
}
render() {
return (
<View style={styles.container}>
<Image source={require('./assets/reem.jpg')} style={{ width: 100, height: 100 }} />
< Button title="explore Me!" onPress={this.press} />
<View>
<ImageBackground source={
require('./assets/bg.jpg')
}
style={
{
width: 300,
height: 300
}
}>
<Text> Inside </Text>
<Text > Hello world. </Text>
</ImageBackground>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});