2
Ich bin gerade von Android zu React Native vor kurzem umgezogen. Brauche also Hilfe. Warum kann ich nicht auf die Variable in derselben Klasse zugreifen, zum Beispiel wenn ich URL_API_SERVER von einer anderen Klasse anrufe, gibt es mir 'Undefined/api/v2'.Reactive Native - Zugriff auf statische Variable für dieselbe Klasse
class Constant {
static BASE_URL = 'https://xxxxx';
static URL_API_SERVER = this.BASE_URL + '/api/v2';
static STATIC_BASEURL = this.BASE_URL + '/static';
static URLSTRING_FAQ = this.STATIC_BASEURL + '/FAQ.html';
static URLSTRING_TOU = this.STATIC_BASEURL + '/TOU.html';
}
export default Constant;