Skip to content

Instantly share code, notes, and snippets.

View vhonLopez's full-sized avatar
💭
I may be slow to respond.

Vhon Lopez vhonLopez

💭
I may be slow to respond.
View GitHub Profile
@vhonLopez
vhonLopez / KeyboardAvoiding.js
Last active July 27, 2025 04:32
KeyboardAvoidingCustom.js
import React, { useEffect, useRef } from "react";
import {
Image,
Keyboard,
Platform,
StyleSheet,
Pressable
} from "react-native";
@vhonLopez
vhonLopez / GlobalModalProvider.js
Last active July 26, 2025 05:47
Global Modal Context
import React, { createContext, useContext, useState, useCallback } from "react";
import { StyleSheet, Dimensions, Pressable } from "react-native";
import Animated, {
useSharedValue,
withTiming,
useAnimatedStyle,
Easing,
runOnJS,
} from "react-native-reanimated";
import { useSafeAreaInsets } from "react-native-safe-area-context";