after run sudo react-native run-android
echo error:
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
after add sdk.dir in local.properties is work, but i want fix generaly.
in ~/.bashrc
export ANDROID_HOME="$HOME/programs/android_sdk"
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
but not work!
how can i fix it?