diff --git a/modules/react-native-scroll-forwarder/src/ScrollForwarderView.tsx b/modules/react-native-scroll-forwarder/src/ScrollForwarderView.tsx index 315605aae5..90c39024bb 100644 --- a/modules/react-native-scroll-forwarder/src/ScrollForwarderView.tsx +++ b/modules/react-native-scroll-forwarder/src/ScrollForwarderView.tsx @@ -1,4 +1,4 @@ -import {type NativeProps} from './ScrollForwarderViewNativeComponent' +import {type NativeProps} from './types' export function ScrollForwarderView({children}: NativeProps) { return children diff --git a/modules/react-native-scroll-forwarder/src/index.tsx b/modules/react-native-scroll-forwarder/src/index.tsx index 2210e5d9f2..1552abbec8 100644 --- a/modules/react-native-scroll-forwarder/src/index.tsx +++ b/modules/react-native-scroll-forwarder/src/index.tsx @@ -1,2 +1,2 @@ export {ScrollForwarderView} from './ScrollForwarderView' -export * from './ScrollForwarderViewNativeComponent' +export type {NativeProps} from './types' diff --git a/modules/react-native-scroll-forwarder/src/types.ts b/modules/react-native-scroll-forwarder/src/types.ts new file mode 100644 index 0000000000..8fbc7a62c3 --- /dev/null +++ b/modules/react-native-scroll-forwarder/src/types.ts @@ -0,0 +1,9 @@ +import {type CodegenTypes, type ViewProps} from 'react-native' + +type OnRefreshEvent = {} + +export interface NativeProps extends ViewProps { + scrollViewTag: CodegenTypes.Int32 | null + refreshing?: boolean + onRefresh?: CodegenTypes.BubblingEventHandler +}