Open MrSquaare opened 1 year ago
When using the prop abs with TypeScript, it throw an error:
abs
Property 'abs' does not exist on type 'IntrinsicAttributes & ViewProps & RefAttributes<View>'
<View />
Be valid
Invalid type
const Component = () => { return <View abs />; }
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.
Description
When using the prop
abs
with TypeScript, it throw an error:Related to
Steps to reproduce
<View />
component in a TypeScript projectabs
prop to this componentExpected behavior
Be valid
Actual behavior
Invalid type
More Info
Code snippet
Screenshots/Video
Environment
Affected platforms