| 5 | import { useTheme } from '../../util/theme'; |
| 6 | |
| 7 | const createStyles = (colors) => |
| 8 | StyleSheet.create({ |
| 9 | container: { |
| 10 | backgroundColor: colors.background.alternative, |
| 11 | paddingVertical: 8, |
| 12 | paddingHorizontal: 10, |
| 13 | borderRadius: 100, |
| 14 | flexDirection: 'row', |
| 15 | alignItems: 'center', |
| 16 | justifyContent: 'center', |
| 17 | }, |
| 18 | caretDown: { |
| 19 | textAlign: 'right', |
| 20 | color: colors.text.alternative, |
| 21 | marginLeft: 10, |
| 22 | marginRight: 5, |
| 23 | }, |
| 24 | }); |
| 25 | |
| 26 | function SelectorButton({ onPress, disabled, children, ...props }) { |
| 27 | const { colors } = useTheme(); |