File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ diff --git a/node_modules/react-native-paper-dates/src/Date/Swiper.tsx b/node_modules/react-native-paper-dates/src/Date/Swiper.tsx
2+ index a71e0f2..c455c37 100644
3+ --- a/node_modules/react-native-paper-dates/src/Date/Swiper.tsx
4+ +++ b/node_modules/react-native-paper-dates/src/Date/Swiper.tsx
5+ @@ -32,6 +32,7 @@ import {
6+ import { sharedStyles } from '../shared/styles'
7+
8+ const useIsomorphicLayoutEffect =
9+ + // @ts-ignore
10+ typeof window !== 'undefined' ? useLayoutEffect : useEffect
11+
12+ function Swiper({
13+ @@ -177,6 +178,7 @@ function VerticalScroller({
14+ effectiveEndYear
15+ ) - montHeaderHeight
16+
17+ + // @ts-ignore
18+ element.scrollTo({
19+ top,
20+ })
21+ @@ -186,6 +188,7 @@ function VerticalScroller({
22+
23+ const onScroll = useCallback(
24+ (e: UIEvent) => {
25+ + // @ts-ignore
26+ const top = e.currentTarget?.scrollTop
27+ if (top === 0) {
28+ return
29+ @@ -298,6 +301,7 @@ export function useDebouncedCallback(callback: any): any {
30+ return () => {
31+ mounted.current = false
32+ if (timerId.current) {
33+ + // @ts-ignore
34+ window.cancelAnimationFrame(timerId.current)
35+ }
36+ }
37+ @@ -306,8 +310,10 @@ export function useDebouncedCallback(callback: any): any {
38+ return useCallback(
39+ (args: any) => {
40+ if (timerId.current) {
41+ + // @ts-ignore
42+ window.cancelAnimationFrame(timerId.current)
43+ }
44+ + // @ts-ignore
45+ timerId.current = window.requestAnimationFrame(function () {
46+ if (mounted.current) {
47+ latest.current(args)
You can’t perform that action at this time.
0 commit comments