wix / react-native-ui-lib

UI Components Library for React Native
https://wix.github.io/react-native-ui-lib/
MIT License
6.44k stars 706 forks source link

`abs` not recognized as valid for TypeScript #2636

Open MrSquaare opened 1 year ago

MrSquaare commented 1 year ago

Description

When using the prop abs with TypeScript, it throw an error:

Property 'abs' does not exist on type 'IntrinsicAttributes & ViewProps & RefAttributes<View>'

Related to

Steps to reproduce

  1. Use the <View /> component in a TypeScript project
  2. Set the abs prop to this component

Expected behavior

Be valid

Actual behavior

Invalid type

More Info

Code snippet

const Component = () => {
  return <View abs />;
}

Screenshots/Video

Environment

Affected platforms

gyanbhartip commented 11 months ago

PositionLiterals = 'absF' | 'absL' | 'absR' | 'absT' | 'absB' | 'absV' | 'absH'

Above are the valid abs props for a View.

I can take it up and update the type definition.