Created
January 30, 2020 17:51
-
-
Save diaraujo13/28e5bf3ecaeb4824e387f74331d575f8 to your computer and use it in GitHub Desktop.
Acessar dados do dispositivo em que roda a aplicação
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Constants from "expo-constants"; | |
class Client { | |
static headers = { | |
"Field-App": JSON.stringify({ | |
device_id: Constants.deviceId, | |
device_name: Constants.deviceName, | |
device_year_class: Constants.deviceYearClass, | |
app_version: Constants.manifest.version, | |
app_version_code: Constants.manifest.android.versionCode, | |
}), | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment