Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

FabScrollContext.ts

10 lines338 Bytes

1import { createContext, useContext } from "react";
2import type { NativeScrollEvent, NativeSyntheticEvent } from "react-native";
3​
4export const FabScrollContext = createContext<
5 ((event: NativeSyntheticEvent<NativeScrollEvent>) => void) | undefined
6>(undefined);
7​
8export function useFabScroll() {
9 return useContext(FabScrollContext);