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

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


const LeanText = forwardRef((props, ref) => {
  return createElement('RCTText', { ...props, ref })
}) as ComponentType<TextProps>

LeanText.displayName = 'RCTText'

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

export { LeanText }
