refactor Pressable Button

This commit is contained in:
ammarahm-ed
2020-12-01 17:51:39 +05:00
parent 116307de7b
commit 470f5c90c0
22 changed files with 132 additions and 191 deletions

View File

@@ -224,12 +224,7 @@ const MoveNoteDialog = () => {
onPress={() => {
setExpanded(item.id === expanded ? null : item.id);
}}
color={expanded === item.id ? colors.shade : 'transparent'}
selectedColor={
expanded === item.id ? colors.accent : colors.nav
}
alpha={colors.night ? 0.02 : -0.02}
opacity={expanded === item.id ? 0.12 : 1}
type={expanded === item.id ? 'shade' : 'transparent'}
customStyle={{
height: 50,
width: '100%',
@@ -365,9 +360,7 @@ const MoveNoteDialog = () => {
'success',
);
}}
color="transparent"
selectedColor={colors.nav}
alpha={colors.night ? 0.02 : -0.02}
type="gray"
customStyle={{
height: 50,
borderTopWidth: index === 0 ? 0 : 1,
@@ -398,7 +391,7 @@ const MoveNoteDialog = () => {
<View
style={{
paddingHorizontal: 12,
width:"100%"
width: '100%',
}}>
<DialogButtons negativeTitle="Cancel" onPressNegative={close} />
</View>