-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript support for react-native #1273
Comments
Followup: What's missing now is getting types for the target platform when the import/require is for 'react-native' (e.g. react-native-windows, which has types in its core package). Met with the TypeScript team, and it sounds like we can get this without further TS core changes. Rough plan is to move everything to @types packages and use existing path/baseurl mapping to make it work. Andrew Branch is going to help when I find time to dig in further. One big step that he pointed out is the need to avoid "links" between types packages -- e.g. RNW types import RN types. This won't work with the remapping system. This means moving every RN platform to its own @types/... package. |
|
Add react-native support to TypeScript. Problem is demonstrated and explained in https://github.com/afoxman/rnts-example.
moduleSuffixes
to expand the node module resolver's search algorithm TypeScript#48189The text was updated successfully, but these errors were encountered: