1.0.8 • Published 10 years ago

react-applink v1.0.8

Weekly downloads
8
License
ISC
Repository
github
Last release
10 years ago

react-applink

app link for react

cases:

  • For installed device, it will call your APP.
  • For uninstall device, it will directly jump to your page.

usage:

  • install:

    npm i --save react-applink

  • code:

const WEB = 'http://www.example.com';
const LINK = 'example://users/1001';
const DOWNLOAD = {
    android: 'http://a.app.qq.com/o/simple.jsp?pkgname=com.example.xxx',
    iOS: 'https://itunes.apple.com/cn/app/xxx?l=en&mt=8',
    other: WEB
};
var AppLink = require('react-applink');
React.render((
    <div>
        <AppLink href={WEB} link={LINK} >
            WEB
        </AppLink>
        <br/>
        <AppLink href={DOWNLOAD}link={LINK} >
            DOWNLOAD
        </AppLink>
    </div>
), document.body);
1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago