Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How to set paths properly in react-native

$
0
0

In my React-Native application, import paths are like this.

import {  ScreenContainer,  SLButton,  SLTextInput,} from '../../../../../components';import { KeyBoardTypes } from '../../../../../enums';import { SIGN_UP_FORM } from '../../../../constants/forms';

I have seen some applications, there the paths are more clear and elegant without '../../../'s. How can I achieve this in React-Native??

I saw in my solution that, in every folder there was a package.json file. I'm not sure if that is the proper way to do it.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>