clean up problems

This commit is contained in:
Hailey
2025-05-12 11:20:47 -07:00
parent 7c587bd98b
commit 6ab0ca2bf6
3 changed files with 47 additions and 20 deletions
@@ -1,10 +1,12 @@
import {
default as NativeScrollForwarderView,
NativeProps,
type NativeProps,
} from './ScrollForwarderViewNativeComponent'
export function ScrollForwarderView({children, ...rest}: NativeProps) {
return (
<NativeScrollForwarderView {...rest}>{children}</NativeScrollForwarderView>
<NativeScrollForwarderView {...rest} style={{flex: 1}}>
{children}
</NativeScrollForwarderView>
)
}
@@ -1,9 +1,16 @@
import {type ViewProps} from 'react-native'
import {
type BubblingEventHandler,
type Int32,
} from 'react-native/Libraries/Types/CodegenTypes'
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'
import type {ViewProps} from 'react-native'
import {Int32} from 'react-native/Libraries/Types/CodegenTypes'
type OnRefreshEvent = {}
export interface NativeProps extends ViewProps {
scrollViewTag?: Int32
onRefresh?: BubblingEventHandler<OnRefreshEvent>
refreshing?: boolean
}
export default codegenNativeComponent<NativeProps>('ScrollForwarderView')