Skip to content

Instantly share code, notes, and snippets.

View dodicandra's full-sized avatar
:electron:

dodi candra dodicandra

:electron:
View GitHub Profile
@jai-adapptor
jai-adapptor / Sheet.tsx
Last active December 10, 2023 05:07
FULL
import React, { useEffect, useState } from 'react';
import { Dimensions, SafeAreaView, StyleSheet, Text, View } from 'react-native';
import {
PanGestureHandler,
TouchableOpacity,
ScrollView,
} from 'react-native-gesture-handler';
import Animated, {
useAnimatedGestureHandler,
useAnimatedStyle,
@eveningkid
eveningkid / react-native-reanimated-drag-sort_apple-music.jsx
Last active August 26, 2024 08:15
React Native Reanimated 2 Multiple Drag and Sort: Apple Music Example
// Expo SDK40
// expo-blur: ~8.2.2
// expo-haptics: ~8.4.0
// react-native-gesture-handler: ~1.8.0
// react-native-reanimated: ^2.0.0-rc.0
// react-native-safe-area-context: 3.1.9
import React, { useState } from 'react';
import {
Image,
@madcampos
madcampos / date.extensions.ts
Last active September 5, 2022 21:17 — forked from weslleih/date.extensions.ts
Extend the TypeScript Date Object with some useful methods
/**
* Fork of: https://gist.github.com/weslleih/b6e7628416a052963349494747aed659
* Important notice: when using with node you need the package `full icu` installed and configured or compile node with full-icu support.
* This way the compiled js code can run using language data other then `en-us`.
*/
export {}
declare global {
interface Date {
addDays(days: number, useThis?: boolean): Date;