import {requireNativeViewManager} from 'expo-modules-core'
import * as React from 'react'

import {ExpoScrollForwarderViewProps} from './ExpoScrollForwarder.types'

const NativeView: React.ComponentType<ExpoScrollForwarderViewProps> =
  requireNativeViewManager('ExpoScrollForwarder')

export function ExpoScrollForwarderView({
  children,
  ...rest
}: ExpoScrollForwarderViewProps) {
  return <NativeView {...rest}>{children}</NativeView>
}
