diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap index 9d9a30e3..b30a37fe 100644 --- a/__tests__/__snapshots__/Storyshots.test.js.snap +++ b/__tests__/__snapshots__/Storyshots.test.js.snap @@ -6796,7 +6796,7 @@ exports[`Storyshots List with black theme 1`] = ` `; -exports[`Storyshots List with custom color 1`] = ` +exports[`Storyshots List with custom colors 1`] = ` + + + + Press me! + + + + `; diff --git a/app/constants/colors.js b/app/constants/colors.js index 6cc0ea16..b1fdcd7f 100644 --- a/app/constants/colors.js +++ b/app/constants/colors.js @@ -35,6 +35,7 @@ export const themes = { auxiliaryText: '#9ca2a8', infoText: '#6d6d72', tintColor: '#1d74f5', + tintActive: '#549df9', auxiliaryTintColor: '#6C727A', actionTintColor: '#1d74f5', separatorColor: '#cbcbcc', @@ -80,6 +81,7 @@ export const themes = { auxiliaryText: '#9297a2', infoText: '#6D6D72', tintColor: '#1d74f5', + tintActive: '#549df9', auxiliaryTintColor: '#f9f9f9', actionTintColor: '#1d74f5', separatorColor: '#2b2b2d', @@ -125,6 +127,7 @@ export const themes = { auxiliaryText: '#b2b8c6', infoText: '#6d6d72', tintColor: '#1e9bfe', + tintActive: '#76b7fc', auxiliaryTintColor: '#f9f9f9', actionTintColor: '#1e9bfe', separatorColor: '#272728', diff --git a/app/containers/List/ListItem.js b/app/containers/List/ListItem.js index a3252a7f..6ce7bb6f 100644 --- a/app/containers/List/ListItem.js +++ b/app/containers/List/ListItem.js @@ -1,9 +1,6 @@ import React from 'react'; import { - View, - Text, - StyleSheet, - I18nManager + View, Text, StyleSheet, I18nManager } from 'react-native'; import PropTypes from 'prop-types'; @@ -82,11 +79,12 @@ const Content = React.memo(({ )); const Button = React.memo(({ - onPress, ...props + onPress, backgroundColor, underlayColor, ...props }) => ( onPress(props.title)} - style={{ backgroundColor: themes[props.theme].backgroundColor }} + style={{ backgroundColor: backgroundColor || themes[props.theme].backgroundColor }} + underlayColor={underlayColor} enabled={!props.disabled} theme={props.theme} > @@ -99,7 +97,7 @@ const ListItem = React.memo(({ ...props }) => { return