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