Git Product home page Git Product logo

Comments (7)

DanielRosenwasser avatar DanielRosenwasser commented on August 18, 2024 3

The React Native setup is fairly minimal anyway once you've spent 18 hours getting Android Studio working (tip: on Windows I was better off using a physical device).

Check out https://github.com/Microsoft/TypeScript-React-Native-Starter which I also wrote if you'd like to get TypeScript wired up w/ RN. It's not entirely smooth, but with changes coming to the React Native Packager, it'll get much better.

from create-react-app-typescript.

brentvatne avatar brentvatne commented on August 18, 2024 2

Hi @wmonk!

I'm not sure how this would work to be honest. Their repo doesn't seem to be forked from the original facebook one, so is inherently incompatible with react-scripts-ts. I would accept a guide in a PR if you can provide one.

We (Expo in collaboration with Facebook) based create-react-native-app on create-react-app but there are some inherently incompatible pieces -- you are correct that react-scripts-ts will not work with create-react-native-app because react-native-scripts is very different from react-scripts :)


Hey @DanielRosenwasser! Wow thanks a lot for putting that together, it looks very comprehensive.

The React Native setup is fairly minimal anyway once you've spent 18 hours getting Android Studio working (tip: on Windows I was better off using a physical device).

I think this is true if you are a smart, experienced engineer at Microsoft, but it is also certainly not ideal. Additionally, it is a pain to just get Android Studio set up but it doesn't stop there -- what if you want to set up iOS as well? and what if you want to try out iOS and you're on Windows? Then there's the build errors when adding native modules (CRNA includes a bunch out of the box), project configuration woes, etc. The time-to-hello-world (TTHW) is too high, and in some cases not possible (React Native iOS development from Windows) without using Create React Native App (CRNA).

CRNA will be recommended in the Quick Start guide for React Native starting in React Native 0.45 so you will be getting more questions about this.

We would be happy to work with you to make TypeScript integration in CRNA a breeze, let us know how we can help.

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024 2

@DanielRosenwasser @brentvatne it would definitely be cool to put together some kind of guide of how to get ts working in CRNA and visa versa! Not sure if it's something that would live here though?

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024 1

I'm not sure how this would work to be honest. Their repo doesn't seem to be forked from the original facebook one, so is inherently incompatible with react-scripts-ts. I would accept a guide in a PR if you can provide one.

from create-react-app-typescript.

DanielRosenwasser avatar DanielRosenwasser commented on August 18, 2024 1

@brentvatne I definitely agree. Sorry I didn't get to respond to this (it was EOD Friday). I think long term I want to make the process as easy as possible. Short term, I want to make it at least somewhat possible. 😄

I think things will be getting better thanks to metro-bundler. I'll email you soon to try to open up some discussion from our end. Thanks for reaching out!

from create-react-app-typescript.

pierre-H avatar pierre-H commented on August 18, 2024

For anyone who tries to use TypeScript with CRNA, check this :
expo/create-react-native-app#87 (comment)

from create-react-app-typescript.

wmonk avatar wmonk commented on August 18, 2024

As this hasn't been updated for a while, I am closing this issue. Please re-open if we have an update.

from create-react-app-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.