fix missing disbled feature not working with pressable
This commit is contained in:
@@ -17,7 +17,7 @@ export const Element = (props: ElementProps) => {
|
||||
break;
|
||||
}
|
||||
|
||||
if (actionFunction) {
|
||||
if (!props?.disabled && actionFunction) {
|
||||
return (
|
||||
<Pressable onPress={actionFunction}>
|
||||
{({ isHovered }) => {
|
||||
|
||||
@@ -133,6 +133,7 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
||||
{
|
||||
type: "toggle",
|
||||
title: "Notifications",
|
||||
disabled: true,
|
||||
data: {
|
||||
value: toggle,
|
||||
onToggle: () => {
|
||||
|
||||
Reference in New Issue
Block a user