-
Notifications
You must be signed in to change notification settings - Fork 196
/
Buttons.js
40 lines (34 loc) · 1.46 KB
/
Buttons.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
import React, { Component, PropTypes, View, Text, IntentAndroid, InteractionManager, Alert, TouchableNativeFeedback } from 'react-native';
import { Button, Subheader, COLOR } from 'react-native-material-design';
import AppStore from '../stores/AppStore';
export default class Buttons extends Component {
render() {
const theme = AppStore.getState().theme;
return (
<View>
<Subheader text="Light Theme"/>
<View style={styles.content}>
<Button text="NORMAL" primary={theme} />
<Button text="NORMAL RAISED" primary={theme} raised/>
<Button text="DISABLED" primary={theme} disabled/>
<Button text="DISABLED RAISED" primary={theme} disabled raised/>
</View>
<Subheader text="Dark Theme"/>
<View style={{
backgroundColor: COLOR.paperGrey900.color,
padding: 16
}}>
<Button text="NORMAL FLAT" primary={theme} theme="dark"/>
<Button text="DISABLED FLAT" primary={theme} disabled theme="dark"/>
<Button text="NORMAL RAISED" primary={theme} theme="dark" raised/>
<Button text="DISABLED RAISED" primary={theme} disabled theme="dark" raised/>
</View>
</View>
);
}
}
const styles = {
content: {
padding: 16
}
};