Comments (7)
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.
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.
@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.
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.
@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.
For anyone who tries to use TypeScript with CRNA, check this :
expo/create-react-native-app#87 (comment)
from create-react-app-typescript.
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)
- Browserlist error
- CRA 2.0 HOT 31
- Include nodejs v8 for for Travis CI build
- Remove dependency on babel HOT 2
- Using jest-extended? HOT 1
- Husky hooks not working HOT 1
- Update webpack-dev-server HOT 10
- Add documentation detailing differences between CRA 2.0 and CRA-TS HOT 10
- Source Maps don't work for `js` or `jsx` files in live dev mode.
- Version 4.0.8: Internet Explorer no working anymore HOT 2
- Build process is almost 20 minutes long HOT 1
- postcss support? HOT 1
- Why is Jest's version hard coded to "20.0.4"? HOT 1
- Jest doesn't work when I add lint-staged
- Maintenance
- Tslint rules are barriers to entry HOT 2
- [Help] Compatibility IE + Firefox old versions problems
- Are 4.X.X versions are legit? HOT 1
- Jest doesn't resolve absolute paths from tsconfig HOT 1
- npm start dont work on freeBSD
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-react-app-typescript.