in any project with node.js, react, i set up the env variable:
NODE_PATH=src/
and then i can do imports like
import COLORS from 'Constants/Colors'
instead of
import COLORS from '../../../Constants/Colors'
I just started with react-native, with expo and am trying to find a solution for this.
I tried the same approach of adding the env variable and it doesn't work