From 7c3364196a2a791a01e2a2d9d167bffb6f184ff6 Mon Sep 17 00:00:00 2001 From: Igor Avramovic Date: Fri, 3 Jun 2016 05:42:22 -0700 Subject: [PATCH] Reverted commit D3369528 Differential Revision: D3369528 fbshipit-source-id: 4400411f43bc8396b3692d80b797eceed8899452 --- Libraries/Utilities/Platform.android.js | 9 +-------- Libraries/Utilities/Platform.ios.js | 9 +-------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/Libraries/Utilities/Platform.android.js b/Libraries/Utilities/Platform.android.js index c9ba2c0bc..86861e4c7 100644 --- a/Libraries/Utilities/Platform.android.js +++ b/Libraries/Utilities/Platform.android.js @@ -12,17 +12,10 @@ 'use strict'; -const Platform = { +var Platform = { OS: 'android', get Version() { return require('NativeModules').AndroidConstants.Version; }, select: (obj: Object) => obj.android, - lazySelect(obj: ?Object): ?Object { - if (!obj || !obj.android) { - return null; - } - - return obj.android(); - }, }; module.exports = Platform; diff --git a/Libraries/Utilities/Platform.ios.js b/Libraries/Utilities/Platform.ios.js index 99eb5d1c1..070bd2874 100644 --- a/Libraries/Utilities/Platform.ios.js +++ b/Libraries/Utilities/Platform.ios.js @@ -12,16 +12,9 @@ 'use strict'; -const Platform = { +var Platform = { OS: 'ios', select: (obj: Object) => obj.ios, - lazySelect(obj: ?Object): ?Object { - if (!obj || !obj.ios) { - return null; - } - - return obj.ios(); - }, }; module.exports = Platform;