The video speaks for itself. I have no idea what to say haha. I know the code is messy, its rough :))
The libary from computerjazz doesn't do it - the reason for using this is because the other libary for some reason won't work with updating data - which i do often and i don't want pull down to update.
Code:
`// CustomComponent.js
import React, { useEffect, useState, useCallback } from 'react';
import { Pressable, ScrollView, StyleSheet, Text, View, Image, Dimensions, TouchableOpacity } from 'react-native';
import GlobalStyles from '../GlobalStyles';
import { useEntitiesContext } from '../EntitiesContext';
import HAService from '../Services/HAService';
import FontText from '../components/FontText';
import colors from '../colors';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome';
import { faHousePersonLeave } from '@fortawesome/pro-solid-svg-icons';
import { faChevronRight, faArrowUpRight, faShieldExclamation, faTemperature0, faHeat, faDroplet, faBolt, faCameraWeb } from '@fortawesome/pro-light-svg-icons';
import ClickAnimationComponent from '../components/ClickAnimationComponent';
import { useNavigation } from '@react-navigation/native';
import { BlurView } from 'expo-blur';
import { faShieldCheck } from '@fortawesome/pro-light-svg-icons';
import { faLock, faUnlock, faPlugCircleBolt, faPlugCircleXmark, faPlugCircleCheck, faPlug, faSun, faCog, faLockOpen } from '@fortawesome/pro-regular-svg-icons';
import DragList, { DragListRenderItemInfo } from 'react-native-draglist';
import as Haptics from 'expo-haptics';
import as SecureStore from "expo-secure-store"
@MathiasSvDK : I'm not sure what you mean when you say the video speaks for itself... since the video doesn't show where your fingers are dragging, could you describe in words what the problem is?
The video speaks for itself. I have no idea what to say haha. I know the code is messy, its rough :)) The libary from computerjazz doesn't do it - the reason for using this is because the other libary for some reason won't work with updating data - which i do often and i don't want pull down to update.
Code: `// CustomComponent.js
import React, { useEffect, useState, useCallback } from 'react'; import { Pressable, ScrollView, StyleSheet, Text, View, Image, Dimensions, TouchableOpacity } from 'react-native'; import GlobalStyles from '../GlobalStyles'; import { useEntitiesContext } from '../EntitiesContext'; import HAService from '../Services/HAService'; import FontText from '../components/FontText'; import colors from '../colors'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'; import { faHousePersonLeave } from '@fortawesome/pro-solid-svg-icons'; import { faChevronRight, faArrowUpRight, faShieldExclamation, faTemperature0, faHeat, faDroplet, faBolt, faCameraWeb } from '@fortawesome/pro-light-svg-icons'; import ClickAnimationComponent from '../components/ClickAnimationComponent'; import { useNavigation } from '@react-navigation/native'; import { BlurView } from 'expo-blur'; import { faShieldCheck } from '@fortawesome/pro-light-svg-icons'; import { faLock, faUnlock, faPlugCircleBolt, faPlugCircleXmark, faPlugCircleCheck, faPlug, faSun, faCog, faLockOpen } from '@fortawesome/pro-regular-svg-icons';
import DragList, { DragListRenderItemInfo } from 'react-native-draglist'; import as Haptics from 'expo-haptics'; import as SecureStore from "expo-secure-store"
const HomeView = () => {
};
function getPastelColor(index) { const pastelColors = ["#FFB6C1", "#FFC0CB", "#FF69B4", "#FFA07A", "#FA8072", "#FF6347", "#FFE4E1", "#FFDAB9", "#FFF5EE", "#F0FFF0", "#F5FFFA", "#B0E0E6", "#ADD8E6", "#87CEEB", "#87CEFA", "#00BFFF", "#B0C4DE", "#1E90FF", "#6495ED", "#4682B4", "#5F9EA0", "#AFEEEE", "#00CED1", "#20B2AA", "#48D1CC", "#40E0D0", "#00FFFF", "#E0FFFF", "#7FFFD4", "#66CDAA", "#00FA9A", "#F5FFFA", "#00FF7F", "#3CB371", "#2E8B57", "#F0FFF0", "#90EE90", "#98FB98", "#8FBC8F", "#32CD32", "#00FF00", "#228B22", "#008000", "#006400", "#7FFF00", "#7CFC00", "#ADFF2F", "#556B2F", "#9ACD32"]; return pastelColors[index] }
https://github.com/user-attachments/assets/79ac25db-83cb-4699-98e0-870391100d2b
export default HomeView; `