GeekyAnts / GeekyAnts/NativeBase
TypeScript for Input stops working after adding baseStyle to it in extendTheme
- Dominant language
- TypeScript
- Stars
- 20.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Description
TypeScript for Input stops working after adding baseStyle to it in extendTheme.
### CodeSandbox/Snack link
No need.
### Steps to reproduce
1. Add baseStyle to Input in extendTheme and declare type according to the documentation
For example:
```typescript
const theme = extendTheme({
components: {
Input: {
baseStyle: props => {
return {
color: 'black'
}
}
}
}
})
type NativeBaseThemeType = typeof nativeBaseTheme
declare module 'native-base' {
interface ICustomTheme extends NativeBaseThemeType {}
}
```
2. Use an Input component and try prop suggestions
4. See that there are no prop suggestions

5. If we go further into the TypeScript file of the Input component, we will see this error:

### NativeBase Version
3.4.25
### Platform
- [ ] Android
- [ ] CRA
- [ ] Expo
- [ ] iOS
- [ ] Next
### Other Platform
Visual Studio Code
### Additional Information
_No response_
3. Use an Input component and try prop suggestions
4. See that there are no prop suggestions

6. If we go further into the typescript of the Input component, we can see this error:
```
Type alias 'IInputProps' circularly references itself.ts(2456)
```

### NativeBase Version
3.4.25
### Platform
- [ ] Android
- [ ] CRA
- [ ] Expo
- [ ] iOS
- [ ] Next
### Other Platform
Visual Studio Code
### Additional Information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.