How to use the cozy-device-helper.isIOS function in cozy-device-helper

To help you get started, we’ve selected a few cozy-device-helper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cozy / cozy.github.io / en / cozy-banks / src / ducks / mobile / push.js View on Github external
const handleNotification = notification => {
  if (notification.additionalData.foreground && isIOS()) {
    // on iOS the the notification does not appear if the application is in foreground
    Alerter.info(notification.title + ' : ' + notification.message)
  }
  if (flag('debug')) {
    // eslint-disable-next-line no-console
    console.log('Received notification', notification)
  }
  if (
    !notification.additionalData.foreground &&
    notification.additionalData.route
  ) {
    hashHistory.push(notification.additionalData.route)
  }
}
github cozy / cozy.github.io / en / cozy-banks / src / ducks / pin / PinButton.jsx View on Github external
import React from 'react'
import styles from 'ducks/pin/styles.styl'
import cx from 'classnames'
import { isIOS } from 'cozy-device-helper'

const shouldDisplayIOSVariant = isIOS()

const PinButton = ({ className, isText, ...props }) => {
  return (
    <button>
  )
}</button>