diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-14 01:12:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-14 01:12:31 +0300 |
commit | b2c56cbd6dfa9af576f947dd41a0d33376b184d1 (patch) | |
tree | acdf57b6e7e2860c89b20b1dc239fe20521cb1c4 /src/lib/ScrollContext.tsx | |
parent | 275fece3e3de0bd09377a33813bcfe35e352874b (diff) | |
download | voidsky-b2c56cbd6dfa9af576f947dd41a0d33376b184d1.tar.zst |
Add displayName to contexts (#8814)
Diffstat (limited to 'src/lib/ScrollContext.tsx')
-rw-r--r-- | src/lib/ScrollContext.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ScrollContext.tsx b/src/lib/ScrollContext.tsx index d55b8cdab..7cab5236b 100644 --- a/src/lib/ScrollContext.tsx +++ b/src/lib/ScrollContext.tsx @@ -1,5 +1,5 @@ -import React, {createContext, useContext, useMemo} from 'react' -import {ScrollHandlers} from 'react-native-reanimated' +import {createContext, useContext, useMemo} from 'react' +import {type ScrollHandlers} from 'react-native-reanimated' const ScrollContext = createContext<ScrollHandlers<any>>({ onBeginDrag: undefined, @@ -7,6 +7,7 @@ const ScrollContext = createContext<ScrollHandlers<any>>({ onScroll: undefined, onMomentumEnd: undefined, }) +ScrollContext.displayName = 'ScrollContext' export function useScrollHandlers(): ScrollHandlers<any> { return useContext(ScrollContext) |