{"size": 429, "ext": "js", "max_stars_repo_path": "Example/app/configs/config.js", "max_stars_repo_name": "trongchien/react-native-example", "max_stars_repo_stars_event_min_datetime": "2018-10-26T03:56:19.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T08:38:27.000Z", "max_issues_repo_path": "Example/app/configs/config.js", "max_issues_repo_name": "hoabuiyt/react-native", "max_issues_repo_issues_event_min_datetime": "2019-04-25T10:36:55.000Z", "max_issues_repo_issues_event_max_datetime": "2019-04-25T10:36:55.000Z", "max_forks_repo_path": "Example/app/configs/config.js", "max_forks_repo_name": "hoabuiyt/react-native", "max_forks_repo_forks_event_min_datetime": "2018-11-19T15:39:24.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-17T16:12:26.000Z"}
{"max_stars_count": 266, "max_issues_count": 1, "max_forks_count": 81, "avg_line_length": 21.45, "max_line_length": 58, "alphanum_fraction": 0.7272727273}
import { Dimensions } from "react-native";

const config = {
	SERVER_URL: "https://api.ice5.skyx.app/",
	TEST_URL: "https://api.ice5.skyx.app/",
	DEVELOP_MODE: true
}

export function getBaseURL() {
	if (AppConfig.DEVELOP_MODE) {
		return AppConfig.TEST_URL
	}
	return AppConfig.SERVER_URL
}

export function getImageURL(filename) {
	return getBaseURL() + "public/data/language/" + filename;
}

export default AppConfig = config;