Skip to content

abs not recognized as valid for TypeScript #2636

Open
@MrSquaare

Description

@MrSquaare

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

  • Components
  • Demo
  • Docs
  • Typings

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

  • React Native version: 0.72
  • React Native UI Lib version: 7.5.0

Affected platforms

  • Android
  • iOS
  • Web

Metadata

Metadata

Assignees

No one assigned

    Labels

    buga bug in one of the componentstypescripttypescript related issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions