NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Typing issue with extended theme

Open sanna231 opened this issue 3 years ago • 1 comments

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,
  }),
},

sanna231 avatar Jul 26 '22 07:07 sanna231

Hey @sanna231, Thanks for reporting the issue. We are working on it.

ankit-tailor avatar Aug 09 '22 06:08 ankit-tailor