gluestack-ui icon indicating copy to clipboard operation
gluestack-ui copied to clipboard

`AlertText` type error

Open jordmccord opened this issue 1 year ago • 4 comments

Description

Since updating to @gluestack/themed v1.1.22 I've started to the following typescript error when using the AlertText component:

Type '{ children: string | undefined; }' has no properties in common with type 'IntrinsicAttributes & RefAttributes<StyledComponentProps<StyleProp<TextStyle>, unknown, StyledComponentProps<StyleProp<TextStyle>, unknown, TextProps, "Text"> & RefAttributes<...>, "AlertText"> & RefAttributes<...>>'.

CodeSandbox/Snack link

No response

Steps to reproduce

Use the AlertText component and try and compile TS

gluestack-ui Version

1.1.22

Platform

  • [ ] Expo
  • [ ] React Native CLI
  • [ ] Next
  • [ ] Web
  • [ ] Android
  • [ ] iOS

Other Platform

No response

Additional Information

No response

jordmccord avatar Apr 10 '24 09:04 jordmccord

Same here. As a workaround I downgraded to "@gluestack-ui/themed": "1.1.18" and it is working here.

versions from my package.json:

    "@gluestack-style/react": "1.0.52",
    "@gluestack-ui/config": "1.1.18",
    "@gluestack-ui/themed": "1.1.18",

ghashi avatar Apr 16 '24 03:04 ghashi

same here - downgraded as well

Exulenood avatar Apr 25 '24 08:04 Exulenood

Same here - bump

Jelmerovereem avatar Apr 26 '24 14:04 Jelmerovereem

@jordmccord Thanks for reporting the issue. It has been resolved here.

Please make sure you have this version installed: "@gluestack-ui/alert": "0.1.14", The type error won't come.

DaminiPandey avatar May 09 '24 10:05 DaminiPandey

Thanks for fixing @DaminiPandey

jordmccord avatar Jun 06 '24 13:06 jordmccord