-
Notifications
You must be signed in to change notification settings - Fork 379
Expand file tree
/
Copy pathMain.js
More file actions
41 lines (37 loc) · 760 Bytes
/
Main.js
File metadata and controls
41 lines (37 loc) · 760 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
import React, {
Component,
PropTypes,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native'
export default class ControlPanel extends Component {
static PropTypes = {
openDrawer: PropTypes.func.isRequired,
};
render() {
return (
<ScrollView style={styles.container}>
<Text>MAIN</Text>
<TouchableOpacity style={styles.button} onPress={ this.props.openDrawer }>
<Text>Open Drawer</Text>
</TouchableOpacity>
</ScrollView>
)
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: '#7699dd',
padding: 20,
flex: 1,
},
button: {
backgroundColor: 'white',
borderWidth: 1,
borderColor: 'black',
padding: 10,
}
})