Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AlertText type error #2060

Open
6 tasks
jordmccord opened this issue Apr 10, 2024 · 4 comments
Open
6 tasks

AlertText type error #2060

jordmccord opened this issue Apr 10, 2024 · 4 comments
Assignees
Labels
bug Something isn't working waiting for response

Comments

@jordmccord
Copy link

jordmccord commented Apr 10, 2024

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 jordmccord added the bug Something isn't working label Apr 10, 2024
@ghashi
Copy link

ghashi commented Apr 16, 2024

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",

@Exulenood
Copy link

same here - downgraded as well

@Jelmerovereem
Copy link

Same here - bump

@DaminiPandey DaminiPandey self-assigned this May 9, 2024
@DaminiPandey
Copy link
Collaborator

DaminiPandey commented May 9, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for response
Projects
None yet
Development

No branches or pull requests

5 participants