Make theming somewhat more performant

This commit is contained in:
Lei Nelissen
2021-02-13 12:14:57 +01:00
parent 6cfa8f7624
commit 8dc287e56a
3 changed files with 37 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
import React, { useCallback, useState } from 'react';
import { SvgProps } from 'react-native-svg';
import {
PressableProps,
PressableProps, ViewProps,
} from 'react-native';
import { THEME_COLOR } from 'CONSTANTS';
import styled, { css } from 'styled-components/native';
@@ -10,6 +10,7 @@ import useDefaultStyles from './Colors';
interface ButtonProps extends PressableProps {
icon?: React.FC<SvgProps>;
title: string;
style?: ViewProps['style'];
}
interface PressableStyleProps {