Skip to content

What should the type of image be for new architecture when using Typescript? #72

Discussion options

You must be logged in to vote

So my question is: what type should be used for Typescript with new architecture codegen? Any support with this would be much appreciated!

The real answer is that, probably, You are already using the right type for TS, but the CodeGen is not aware of the TS ImageSource.
The TypeScript parser is a porting of the Flow one: we use Flow extensively internally, but we don't use TypeScript. So the TS parser could have bugs and incompatibilities, unfortunately.

But this is a great opportunity to contribute! :D

How?

We can try to add a proper support for that type in TypeScript.

The truth is that, probably, the TS AST Parser outputs type that is not ImageSource when it encounter that type.

  1. Let…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@BartoszKlonowski
Comment options

Answer selected by cortinico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants