NativeBase
NativeBase copied to clipboard
Typing issue with extended theme
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
- Go to '...'
- Click on '...'
- Scroll down to '...'
- 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,
}),
},
Hey @sanna231, Thanks for reporting the issue. We are working on it.