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

Typescript missing component prop type definitions #1392

Closed
sarpere opened this issue Nov 18, 2023 · 2 comments
Closed

Typescript missing component prop type definitions #1392

sarpere opened this issue Nov 18, 2023 · 2 comments
Assignees

Comments

@sarpere
Copy link

sarpere commented Nov 18, 2023

Description

Component prop type definitions are missing for several component such as FormControl, Checkbox, Select. This list may be extended after investigate how many missing type definitions exist.

Problem Statement

Types should have exported to extend custom component based in Gluestack lib.

Proposed Solution or API

Expected export behavior
import {
FormControl,
IFormControlProps,
} from '@gluestack-ui/themed';

Alternatives

No response

Additional Information

Environment versions
@gluestack-ui/themed = 1.0.16

@sarpere sarpere changed the title Missing component prop type definitions Typescript missing component prop type definitions Nov 18, 2023
@ankit-tailor
Copy link
Contributor

Hey @sarpere, Thanks for reporting it. We will look into it.

@Viraj-10
Copy link
Collaborator

Viraj-10 commented Nov 28, 2023

closing this issue. it is duplicate of #848.
for now you can extract type using

import { Button } from "@gluestack-ui/themed"

const IButtonProps = React.ComponentProps<typeof Button>

refer this blog for more info.

@Gluant101 Gluant101 moved this from Backlog to Done in gluestack support Dec 15, 2023
@Viraj-10 Viraj-10 assigned rajat693 and unassigned Viraj-10 Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants