Skip to content
Discussion options

You must be logged in to vote

It is interesting that you say:

reanimated seems notably different from other libraries in that I find I'm having to import "deep into the src tree" to get access to some types

In general, libraries should export everything what is necessary from the index file in their sources, so that everything can be imported directly. If some types aren't available, that means either someone forgot to export them or they are used internally and shouldn't be used by the library user.

If you need some types that aren't available in the public API, you can always open a PR or ask us to export them. Alternatively, you can just copy the type definition from reanimated or other library and declare this t…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@MatiPl01
Comment options

@MatiPl01
Comment options

Answer selected by MatiPl01
@MatiPl01
Comment options

Comment options

You must be logged in to vote
3 replies
@MatiPl01
Comment options

@dcorbin
Comment options

@MatiPl01
Comment options

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