The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { createContext, useContext } from "react"; |
| 2 | import type { NativeScrollEvent, NativeSyntheticEvent } from "react-native"; |
| 3 | |
| 4 | export const FabScrollContext = createContext< |
| 5 | ((event: NativeSyntheticEvent<NativeScrollEvent>) => void) | undefined |
| 6 | >(undefined); |
| 7 | |
| 8 | export function useFabScroll() { |
| 9 | return useContext(FabScrollContext); |
| 10 | } |