Reverted commit D3369528

Differential Revision: D3369528

fbshipit-source-id: 4400411f43bc8396b3692d80b797eceed8899452
This commit is contained in:
Igor Avramovic 2016-06-03 05:42:22 -07:00 committed by Facebook Github Bot 5
parent 3ed00f140d
commit 7c3364196a
2 changed files with 2 additions and 16 deletions

View File

@ -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;

View File

@ -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;