Closed amerllica closed 11 months ago
If this is acceptable to you I can send a PR
Hey @amerllica, We will export typing is in the pipeline. We will export them soon.
Thanks @Viraj-10, I completely migrate from GlueStack to ReactNativeElements. I think nowadays when a TypeScript project wants to be built, first of all, the types would be necessary.
Hey @amerllica, We will export typing is in the pipeline. We will export them soon.
Hi @Viraj-10, there are some news about this issue? Thanks
Is there any update on types? I am also facing the same issue.
I am currently facing this also, any update yet?
No @jerrywonderr, please don't trust this repo. When contributor developers tried to write some codes by using TypeScript and then put any
anywhere, so, there was/is no hope or trust in this product. It's not reliable at all.
This isn't nice. I guess I will use another library. Thanks @amerllica
Description
For example the Button component, component should suggest its own props, but it doesn't happen.
CodeSandbox/Snack link
https://snack.expo.dev/@amerllica/b2a79c?platform=web&theme=dark
Steps to reproduce
import { Button as ButtonGS } from "@gluestack-ui/themed";
,
afterButtonGS
and try to importButtonProps
.gluestack-ui Version
^0.1.51
Platform
Other Platform
No response
Additional Information
I expected the types of components to be exported but those were not at all. There is no possibility to use glue stack component types. For example, the following code is a wrapper component upon the glue stack button component:
The
ButtonGS
component doesn't suggest anything, even by using this wrapper and force oftype ButtonGSType = React.ComponentProps<typeof ButtonGS>;
to get exported the types, my own exported component only suggestsText, Icon, Group, Spinner
.