Photo by JESHOOTS.COM on Unsplash

How to setup module resolution and path aliases with React Native and TypeScript

Alex Fomushkin
Nov 3 · 4 min read

As your React Native app grows the codebase, it becomes more challenging to manage all the connections between the JavaScript and the TypeScript files. The more complex your folder structure evolves, the harder it is to keep all the path tracking intact. Having deeply nested file structure can lead to some monsters like this:

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Alex Fomushkin

Written by

Cross-platform Mobile Developer and React Native fan. I like clean code, Design Systems, new tech and implementing dark themes.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade