Skip to content

Commit

Permalink
Reverted commit D3369528
Browse files Browse the repository at this point in the history
Differential Revision: D3369528

fbshipit-source-id: 4400411f43bc8396b3692d80b797eceed8899452
  • Loading branch information
Igor Avramovic authored and Facebook Github Bot 5 committed Jun 3, 2016
1 parent 3ed00f1 commit 7c33641
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions Libraries/Utilities/Platform.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
9 changes: 1 addition & 8 deletions Libraries/Utilities/Platform.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 7c33641

Please sign in to comment.