Open
Description
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
- Use the
<View />
component in a TypeScript project - 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