Reverted commit D3369528
Differential Revision: D3369528 fbshipit-source-id: 4400411f43bc8396b3692d80b797eceed8899452
This commit is contained in:
parent
3ed00f140d
commit
7c3364196a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue