applied active opacity to components
parent
01c178593d
commit
a3ce8790e4
|
@ -88,7 +88,11 @@ export function MyTextButton({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styleContainer}>
|
<View style={styleContainer}>
|
||||||
<TouchableOpacity onPress={onPress} disabled={disabled}>
|
<TouchableOpacity
|
||||||
|
onPress={onPress}
|
||||||
|
disabled={disabled}
|
||||||
|
activeOpacity={appContext.appTheme.touchableOpacity.activeOpacity}
|
||||||
|
>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
{
|
{
|
||||||
|
@ -143,7 +147,11 @@ export function MyIconButton({
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
style={style}
|
style={style}
|
||||||
activeOpacity={activeOpacity !== undefined ? activeOpacity : 0.2}
|
activeOpacity={
|
||||||
|
activeOpacity !== undefined
|
||||||
|
? activeOpacity
|
||||||
|
: appContext.appTheme.touchableOpacity.activeOpacity
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<MyIcon
|
<MyIcon
|
||||||
name={iconName}
|
name={iconName}
|
||||||
|
|
|
@ -18,6 +18,7 @@ export default function MyDropdown({
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
onPress={() => onPress()}
|
onPress={() => onPress()}
|
||||||
style={[style, disabled && AppStyles.disabled]}
|
style={[style, disabled && AppStyles.disabled]}
|
||||||
|
activeOpacity={appContext.appTheme.touchableOpacity.activeOpacity}
|
||||||
>
|
>
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
|
|
Loading…
Reference in New Issue