-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathListFilterItem.js
39 lines (34 loc) · 887 Bytes
/
ListFilterItem.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
import React from 'react';
import styled from 'styled-components/native';
import PropTypes from 'prop-types';
const ListFilterItemView = styled.View`
justify-content: center;
align-items: center;
width: 30px;
color: purple;
`;
const ListFilterItemBoxView = styled.View`
width: 18px;
justify-content: center;
align-items: center;
color: red;
`;
/** Properties for the vertical alpha picker */
const ListFilterItemText = styled.Text`
font-size: 20px;
color: lightgreen;
`;
export function ListFilterItem({ title, active = false }) {
return (
<ListFilterItemView>
<ListFilterItemBoxView active={active}>
<ListFilterItemText active={active}>{title}</ListFilterItemText>
</ListFilterItemBoxView>
</ListFilterItemView>
);
}
ListFilterItem.propTypes = {
title: PropTypes.string,
height: PropTypes.number,
active: PropTypes.bool
};