import React from 'react'; import {SafeAreaView, TouchableOpacity, View, Text} from 'react-native'; import {SIZE, WEIGHT} from '../../common/common'; import {w} from '../../utils/utils'; import Icon from 'react-native-vector-icons/Feather'; import * as Animatable from 'react-native-animatable'; import {useAppContext} from '../../provider/useAppContext'; export const AnimatedSafeAreaView = Animatable.createAnimatableComponent( SafeAreaView, ); export const SelectionHeader = ({navigation}) => { // State const { colors, selectionMode, selectedItemsList, updateDB, updateSelectionList, changeSelectionMode, } = useAppContext(); // Render return ( { changeSelectionMode(false); }} hitSlop={{top: 20, bottom: 20, left: 50, right: 40}} style={{ justifyContent: 'center', alignItems: 'flex-start', height: 40, width: 50, marginTop: 2.5, }}> {selectedItemsList.length} ); }; export default SelectionHeader;