Commit 92c94a11 authored by Gant Laborde's avatar Gant Laborde Committed by GitHub

Merge pull request #83 from antoinerousseau/timezone-getter

Add getTimezone() in JS
parents ba810383 f8c06f81
...@@ -148,5 +148,7 @@ console.log("Device Locale", DeviceInfo.getDeviceLocale()); // e.g en-US ...@@ -148,5 +148,7 @@ console.log("Device Locale", DeviceInfo.getDeviceLocale()); // e.g en-US
console.log("Device Country", DeviceInfo.getDeviceCountry()); // e.g US console.log("Device Country", DeviceInfo.getDeviceCountry()); // e.g US
console.log("Timezone", DeviceInfo.getTimezone()); // e.g America/Mexico_City
console.log("App Instance ID", DeviceInfo.getInstanceID()); // ANDROID ONLY - see https://developers.google.com/instance-id/ console.log("App Instance ID", DeviceInfo.getInstanceID()); // ANDROID ONLY - see https://developers.google.com/instance-id/
``` ```
...@@ -53,4 +53,7 @@ module.exports = { ...@@ -53,4 +53,7 @@ module.exports = {
getDeviceCountry: function() { getDeviceCountry: function() {
return RNDeviceInfo.deviceCountry; return RNDeviceInfo.deviceCountry;
}, },
getTimezone: function() {
return RNDeviceInfo.timezone;
},
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment