clean up problems
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user