react-native-ui-lib
react-native-ui-lib copied to clipboard
`abs` not recognized as valid for TypeScript
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
- [x] Typings
Steps to reproduce
- Use the
<View />component in a TypeScript project - Set the
absprop 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
- [x] Android
- [x] iOS
- [x] Web
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.