fix env variable

This commit is contained in:
feruzm 2020-12-26 22:19:44 +02:00
parent 6b75a3f1dc
commit f6a447e254
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,6 @@ ACTIVITY_WEBSOCKET_URL=
BACKEND_URL=
ECENCY_BACKEND_API=
NEW_IMAGE_API=
OLD_IMAGE_API=
PIN_KEY=
DEFAULT_PIN=
SEARCH_API_TOKEN=

View File

@ -1,11 +1,12 @@
import axios from 'axios';
import Config from 'react-native-config';
import VersionNumber from 'react-native-version-number';
const api = axios.create({
baseURL: Config.ECENCY_BACKEND_API,
headers: {
'Content-Type': 'application/json',
'User-Agent': Config.USER_AGENT,
'User-Agent': `${Config.USER_AGENT}/${VersionNumber.appVersion}`,
},
});