1.0.8 • Published 9 years ago

react-applink v1.0.8

Weekly downloads
8
License
ISC
Repository
github
Last release
9 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

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago