Replace Font Awesome with SF Symbols

This commit is contained in:
Lei Nelissen
2020-07-07 13:21:03 +02:00
parent be17edff6e
commit b8718b0b16
20 changed files with 481 additions and 83 deletions

View File

@@ -1,9 +1,10 @@
import React from 'react';
import { TouchableOpacityProps, Text } from 'react-native';
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
import { faChevronRight } from '@fortawesome/free-solid-svg-icons';
import ChevronRight from 'assets/chevron-right.svg';
import styled from 'styled-components/native';
const BUTTON_SIZE = 14;
const Container = styled.TouchableOpacity`
padding: 18px 0;
border-bottom-width: 1px;
@@ -16,7 +17,7 @@ const ListButton: React.FC<TouchableOpacityProps> = ({ children, ...props }) =>
return (
<Container {...props}>
<Text style={{ color: 'salmon', fontSize: 16 }}>{children}</Text>
<FontAwesomeIcon style={{ color: 'salmon' }} icon={faChevronRight} />
<ChevronRight width={BUTTON_SIZE} height={BUTTON_SIZE} fill="salmon" />
</Container>
);
};