Reputation: 2136
I created an Expo boilerplate project that is using TypeScript.
When I run the app with expo start
, the Chrome debugger opens up at http://localhost:19001/debugger-ui/
, but in the devtools I can only see .js
files:
How can I get my .tsx
sourcefiles to show up?
I have "sourceMap": true,
in .tsconfig.json
and the .map
files are generated along the .js
files. Any more configuration I am missing here?
Upvotes: 4
Views: 2116
Reputation: 1007
It works out of the box with React Native Debugger. Imho it's better tool than Chrome devtools, because it has also view Inspector and Redux debugger.
expo init ts-expo-demo
, template: » tabs (TypeScript)expo start -a
This should connect to React Native Debugger and in Sources -> Page -> RNDebuggerWorker.js -> 127.0.0.1:19000 you will find uncompiled TypeScript files
React Native Debugger: 0.11.5
expo: 4.0.16
https://github.com/jhen0409/react-native-debugger/releases
Upvotes: 1
Reputation: 1914
Try using this React Developer Tools chrome extension.
With it you'll be able to debug the jsx files and even inspect into your react components hierarchy
Upvotes: 0