Skip to content

Instantly share code, notes, and snippets.

View huzaifaaak's full-sized avatar
🎯
Focusing

Huzaifa Khan huzaifaaak

🎯
Focusing
View GitHub Profile
@mrousavy
mrousavy / MEMOIZE.md
Last active July 3, 2025 09:48
Memoize!!! 💾 - a react (native) performance guide
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and  
returning the cached result when the same
inputs occur again.                                         
                                                     — wikipedia
@rokkoo
rokkoo / sticky text input
Created May 10, 2023 08:50
Reanimated sticky text input on react native
import React, { useCallback, useState } from 'react';
import {
Pressable,
StyleSheet,
TextInput,
useWindowDimensions,
} from 'react-native';
import { useReanimatedKeyboardAnimation } from 'react-native-keyboard-controller';
import Animated, {
interpolate,