fix: selection not clear on exit selectioMode

This commit is contained in:
ammarahm-ed
2020-03-03 11:05:50 +05:00
parent af06dde4f9
commit 076f86dc22

View File

@@ -68,6 +68,8 @@ export const SelectionHeader = ({navigation}) => {
<TouchableOpacity
onPress={() => {
dispatch({type: ACTIONS.SELECTION_MODE, enabled: !selectionMode});
dispatch({type: ACTIONS.CLEAR_SELECTION});
}}
hitSlop={{top: 20, bottom: 20, left: 50, right: 40}}
style={{