1.0.3 • Published 3 years ago

react-viber-link v1.0.3

Weekly downloads
20
License
MIT
Repository
gitlab
Last release
3 years ago

react-viber-link React component

Tiny React component that generates Viber deep link to specific user profile by number.

Install

yarn add react-viber-link or npm i react-viber-link

Use

import ViberLink from 'react-viber-link'

...
// Inside parent component
return (
  ...
  <ViberLink number="+1 (111) 111-1111">+1 (111) 111-1111 (Viber)</ViberLink>
  ...
)
...

Under the hood

Viber deep links use different schema and number formats for desktops and mobile devices. This component checks the device type, transforms number accordingly and generates link with correct schema

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago