GeekyAnts / GeekyAnts/NativeBase

Typing issue with extended theme

Open
#5,220 1 comment 2 reactions 0 assignees View on GitHub
bug typescript v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

Extending custom prop with component props in `baseStyle` is not working with typescript. Facing typing issue.

### CodeSandbox/Snack link

https://codesandbox.io

### Steps to reproduce

1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error

### NativeBase Version

3.4.9

### Platform

- [X] Android
- [X] CRA
- [X] Expo
- [X] iOS
- [X] Next

### Other Platform

_No response_

### Additional Information

```
Box: {
baseStyle: ( {customProp} : IBoxProps & {customProp: string} ) => ({
bg: customProp,
}),
},
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.