Skip to content

Best way to use the library with Typescript #1868

Answered by ethanshar
dpoltoratsky asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @dpoltoratsky
You concern is definitely justified.
The structure of this path "react-native-ui-lib/generatedTypes/src/components/button" is something that probably will change in the future and might break you.

As you suggested, we should support importing the ButtonProps from the Button package or any other solution.

If you feel comfortable with the code, consider submitting a PR with a suggestion, I'd love to assist.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dpoltoratsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants