close ActionStrip and not open note

This commit is contained in:
ammarahm-ed
2021-01-01 15:49:29 +05:00
parent d718763cf0
commit 0c252a3337

View File

@@ -352,6 +352,14 @@ const SelectionWrapper = ({
setActionStrip(!actionStrip);
};
const _onPress = async () => {
if (actionStrip) {
setActionStrip(false);
return;
}
await onPress();
}
const closeStrip = () => {
setActionStrip(false);
};
@@ -369,7 +377,7 @@ const SelectionWrapper = ({
customColor="transparent"
testID={testID}
onLongPress={onLong}
onPress={onPress}
onPress={_onPress}
customSelectedColor={colors.nav}
customAlpha={!colors.night ? -0.02 : 0.02}
customOpacity={1}