diff --git a/packages/common/lib/index.js b/packages/common/lib/index.js index a66cd63a..20ce4d0a 100644 --- a/packages/common/lib/index.js +++ b/packages/common/lib/index.js @@ -14,6 +14,7 @@ * limitations under the License. * */ +import { Platform } from 'react-native'; export * from './validate'; @@ -30,3 +31,7 @@ export function promiseDefer() { return deferred; } + +export const isIOS = Platform.OS === 'ios'; + +export const isAndroid = Platform.OS === 'android';