From 97582fed2f8cafe89dc7778ace25636c1516e559 Mon Sep 17 00:00:00 2001 From: Marko Savic Date: Fri, 15 Nov 2019 13:43:35 +0100 Subject: [PATCH] Added native label to android and ios Platforms element --- packages/element/src/platform.android.js | 1 + packages/element/src/platform.ios.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/element/src/platform.android.js b/packages/element/src/platform.android.js index 4f0da0cab9c683..9f9bd4c0d9e4c9 100644 --- a/packages/element/src/platform.android.js +++ b/packages/element/src/platform.android.js @@ -5,6 +5,7 @@ import { Platform as OriginalPlatform } from 'react-native'; const Platform = { ...OriginalPlatform, + OS: 'native', select: ( spec ) => { if ( 'android' in spec ) { return spec.android; diff --git a/packages/element/src/platform.ios.js b/packages/element/src/platform.ios.js index bbadff1f193319..f5833141e33028 100644 --- a/packages/element/src/platform.ios.js +++ b/packages/element/src/platform.ios.js @@ -5,6 +5,7 @@ import { Platform as OriginalPlatform } from 'react-native'; const Platform = { ...OriginalPlatform, + OS: 'native', select: ( spec ) => { if ( 'ios' in spec ) { return spec.ios;