gluestack-ui
gluestack-ui copied to clipboard
`AlertText` type error
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
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",
same here - downgraded as well
Same here - bump
@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.
Thanks for fixing @DaminiPandey