import { type ComponentType, createElement, forwardRef } from 'react'
import type { ViewProps } from 'react-native'

// uncomment for NativeWind support
//import { cssInterop } from 'nativewind'


const LeanView = forwardRef((props, ref) => {
  return createElement('RCTView', { ...props, ref })
}) as ComponentType<ViewProps>

LeanView.displayName = 'RCTView'

/* uncomment this if you use NativeWind
cssInterop(LeanView, {
  className: {
    target: 'style',
  },
})
*/

export { LeanView }
