fix missing disbled feature not working with pressable

This commit is contained in:
Clément Le Bihan
2023-04-10 22:15:47 +02:00
parent 9c8395b578
commit 5a5654d4f5
2 changed files with 2 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ export const Element = (props: ElementProps) => {
break;
}
if (actionFunction) {
if (!props?.disabled && actionFunction) {
return (
<Pressable onPress={actionFunction}>
{({ isHovered }) => {

View File

@@ -133,6 +133,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
{
type: "toggle",
title: "Notifications",
disabled: true,
data: {
value: toggle,
onToggle: () => {