Skip to content

Instantly share code, notes, and snippets.

View franko4don's full-sized avatar
🏠
Working from home

Franklin franko4don

🏠
Working from home
View GitHub Profile
@franko4don
franko4don / AnimatedText.tsx
Last active August 2, 2024 07:29
This is a stripped down version of https://www.npmjs.com/package/react-native-animated-numbers but with support for decimal numbers.
import React, { useCallback, useMemo, useRef } from 'react';
import type {
LayoutChangeEvent,
StyleProp,
TextStyle,
ViewStyle,
} from 'react-native';
import { Text, View, Animated, Easing, StyleSheet } from 'react-native';
function usePrevious(value: number): number {
@oleshkooo
oleshkooo / The_easiest_way_to_set_up_absolute_paths_in_your_TypeScript_project.md
Last active October 13, 2025 07:55
The easiest way to set up absolute paths in your TypeScript project