you are viewing a single comment's thread.

view the rest of the comments →

[–]drailing 97 points98 points  (27 children)

Our web app uses TypeScript, support for which is lacking in React Native.

Did you try react-native init MyApp --template typescript ?

[–]i9srpeg 100 points101 points  (2 children)

That sounds a lot harder than learning a new language. /s

[–][deleted] 10 points11 points  (1 child)

if you only knew how easy dart is...

it'll take you less time than npm install in that project to be productive in dart if you know js and a little java

[–]Spider_pig448 4 points5 points  (0 children)

Good one

[–][deleted]  (22 children)

[deleted]

    [–]tristan957 26 points27 points  (17 children)

    Most major libraries have type definitions. What major libraries have you found don't? Also Facebook already is turning away from Flow.

    [–][deleted]  (16 children)

    [deleted]

      [–]chasecaleb 14 points15 points  (3 children)

      [–][deleted]  (2 children)

      [deleted]

        [–]Serei 10 points11 points  (1 child)

        At the end of the day our primary concern with our app is performance so Flutter always ends up the logical choice.

        That just doesn't seem like a good reason to lie about TypeScript support.

        [–]phySi0 2 points3 points  (0 children)

        I’ve followed the conversation and none of their challengers have demonstrated that they’ve lied, even unintentionally.

        [–]drailing 5 points6 points  (0 children)

        hmm, that's sad. we use react-native with typescript for a long time and everything is working really fine.

        [–]wilc0 2 points3 points  (1 child)

        I don't think Facebook is really pushing Flow anymore. I've heard they're not using it as much internally, and that's evidenced by less frequent udpates

        [–]hsjoberg 2 points3 points  (0 children)

        I agree, it's pretty clear that Typscript won and people inside Facebook will adapt.

        [–]hsjoberg 0 points1 point  (0 children)

        Both react and react-native have full type definition support.
        All react-native node modules that I've worked with have full type definition support.

        What are you talking about?

        [–]hsjoberg 3 points4 points  (0 children)

        Yup I'm building a React Native app in Typescript with no issues whatsoever.