mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-24 23:25:40 +00:00
[add] default option for Platform.select
See: https://github.com/facebook/react-native/commit/f30ab35e9278f120247f49d6a355e263cc357946
This commit is contained in:
committed by
Nicolas Gallagher
parent
976320916e
commit
e6f00f7592
@@ -1,6 +1,6 @@
|
||||
const Platform = {
|
||||
OS: 'web',
|
||||
select: (obj: Object) => obj.web
|
||||
select: (obj: Object) => 'web' in obj ? obj.web : obj.default
|
||||
};
|
||||
|
||||
module.exports = Platform;
|
||||
|
||||
Reference in New Issue
Block a user