2020-06-21 13:02:23 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
import { TouchableOpacityProps, Text } from 'react-native';
|
2020-07-07 13:21:03 +02:00
|
|
|
import ChevronRight from 'assets/chevron-right.svg';
|
2020-06-21 13:02:23 +02:00
|
|
|
import styled from 'styled-components/native';
|
|
|
|
|
|
2020-07-07 13:21:03 +02:00
|
|
|
const BUTTON_SIZE = 14;
|
|
|
|
|
|
2020-06-21 13:02:23 +02:00
|
|
|
const Container = styled.TouchableOpacity`
|
|
|
|
|
padding: 18px 0;
|
|
|
|
|
border-bottom-width: 1px;
|
|
|
|
|
border-bottom-color: #eee;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const ListButton: React.FC<TouchableOpacityProps> = ({ children, ...props }) => {
|
|
|
|
|
return (
|
|
|
|
|
<Container {...props}>
|
2020-07-07 14:40:03 +02:00
|
|
|
<Text style={{ color: '#FF3C00', fontSize: 16 }}>{children}</Text>
|
|
|
|
|
<ChevronRight width={BUTTON_SIZE} height={BUTTON_SIZE} fill="#FF3C00" />
|
2020-06-21 13:02:23 +02:00
|
|
|
</Container>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default ListButton;
|