replace expo-scroll-forwarder with obj-c version

This commit is contained in:
Samuel Newman
2026-05-28 12:13:54 +03:00
parent 109488fe09
commit 0a7554d5c1
23 changed files with 579 additions and 412 deletions
@@ -0,0 +1,12 @@
import {
default as NativeScrollForwarderView,
type NativeProps,
} from './ScrollForwarderViewNativeComponent'
export function ScrollForwarderView({children, ...rest}: NativeProps) {
return (
<NativeScrollForwarderView {...rest} style={{flex: 1}}>
{children}
</NativeScrollForwarderView>
)
}
@@ -0,0 +1,5 @@
import {type NativeProps} from './ScrollForwarderViewNativeComponent'
export function ScrollForwarderView({children}: NativeProps) {
return children
}
@@ -0,0 +1,15 @@
import {
codegenNativeComponent,
type CodegenTypes,
type ViewProps,
} from 'react-native'
type OnRefreshEvent = {}
export interface NativeProps extends ViewProps {
scrollViewTag: CodegenTypes.Int32 | null
refreshing?: boolean
onRefresh?: CodegenTypes.BubblingEventHandler<OnRefreshEvent>
}
export default codegenNativeComponent<NativeProps>('ScrollForwarderView')
@@ -0,0 +1,2 @@
export {ScrollForwarderView} from './ScrollForwarderView'
export * from './ScrollForwarderViewNativeComponent'