Skip to content

Instantly share code, notes, and snippets.

View juanchoperezj's full-sized avatar
🇻🇪

Juan Simón juanchoperezj

🇻🇪
View GitHub Profile
@juanchoperezj
juanchoperezj / CustomToast.tsx
Created August 11, 2023 20:10
Custom Toast implemented with Reanimated and Gesture Handler
import React, { forwardRef, useCallback, useImperativeHandle } from 'react';
import { PanGestureHandler } from 'react-native-gesture-handler';
import Animated, {
runOnJS,
useAnimatedGestureHandler,
useAnimatedStyle,
useSharedValue,
withDelay,
withSequence,
withSpring,
@juanchoperezj
juanchoperezj / Alert.tsx
Created August 11, 2023 20:30
Alert component using react-native-bottom-sheet and event emmitter
import { EventEmitter } from 'eventemitter3';
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { Text, View } from 'react-native';
import { BottomSheetModal, BottomSheetModalProvider } from '@gorhom/bottom-sheet';
import { useNavigation } from '@react-navigation/native';
import { AuthStackScreens } from 'navigation/stacks/auth';
import Button from 'common/Button';
@juanchoperezj
juanchoperezj / AppDelegate.mm
Last active August 22, 2025 04:16
Use RocketSim Network Monitoring with both React Native CLI generated and Expo projects
// imports...
@interface RocketSimLoader : NSObject
- (void)loadRocketSimConnect;
@end
@implementation RocketSimLoader