We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0829f1 commit 2182d41Copy full SHA for 2182d41
src/withSmartScroll.tsx
@@ -2,10 +2,10 @@ import React from 'react';
2
import SmartScrollView from './Provider';
3
import { Provider } from 'jotai';
4
5
-export const withSmartScroll = (child: () => React.ReactElement) => {
6
- return () => (
+export const withSmartScroll = (child: (props?: any) => React.ReactElement) => {
+ return (props?: any) => (
7
<Provider>
8
- <SmartScrollView>{child()}</SmartScrollView>
+ <SmartScrollView>{child(props)}</SmartScrollView>
9
</Provider>
10
);
11
};
0 commit comments