akveo / akveo/react-native-ui-kitten
JSX element class does not support attributes because it does not have a 'props' property
- Dominant language
- TypeScript
- Stars
- 10.7k
- Forks
- 962
- PR merge metrics
- No merged PRs in 30d
Description
## 🐛 Bug Report
I am getting an error from typescript compiler on every component imported from this library:
`JSX element class does not support attributes because it does not have a 'props' property`
To be honest I am not really sure it is not due to the monorepo structure or the tsconfig setup but it is the first time I see this kind of error.
The weird thing is, it still compiles while my vscode screen is all red of errors...
I hope someone here has seen this error or knows how to fix it.
## To Reproduce
Steps to reproduce the behavior:
I am on a somewhat fresh install of react-native inside a monorepo (lerna+yarn workspace).
The following snippet gives an error for IconRegistry and ApplicationProvider components.
```ts
function App () {
return (
)
}
```
## Expected behavior
I shouldn't get an error from the compiler.
## UI Kitten and Eva version
| Package | Version |
| ----------- | ----------- |
| @eva-design/eva | ^2.1.1 |
| @ui-kitten/components | ^5.1.1 |
## Environment information
```bash
```
Contributor guide
Assessment
This issue has not been assessed yet.