Skip to content

Instantly share code, notes, and snippets.

View Daavidaviid's full-sized avatar
💭
React Native Freelance mostly.

David Guerin Daavidaviid

💭
React Native Freelance mostly.
View GitHub Profile
@Daavidaviid
Daavidaviid / react-native-vertical-drag-and-drop-list.tsx
Last active December 5, 2025 08:09
React Native Drag and drop vertical list with same height item using Reanimated 4 [Web ✅] - [iOS 😕] - [Android 😕]
import { useCallback, useState } from 'react';
import { LayoutChangeEvent, SafeAreaView, ScrollView, StyleProp, StyleSheet, Text, View, ViewStyle } from 'react-native';
import { Gesture, GestureDetector, GestureHandlerRootView } from 'react-native-gesture-handler';
import Animated, { SharedValue, useAnimatedStyle, useDerivedValue, useSharedValue, withSpring } from 'react-native-reanimated';
import { runOnJS } from 'react-native-worklets';
type Row = { key: string; label: string };
const SEPARATOR_HEIGHT = 16;
@Daavidaviid
Daavidaviid / gist:087b16991ad192d2cb2482ad16b908b6
Last active April 13, 2021 20:00
Useful links to setup native dev machine on m1 Mac
Useful links to make dev possible on an arm64 macos machine without Rosetta 2 :
VSCode for arm64 :
https://code.visualstudio.com/insiders/
iOS and cocoapods issue :
https://stackoverflow.com/questions/64718780/getting-error-while-installing-library-from-pod
Active support issue :