https://github.com/tiaanduplessis/react-native-modest-app-link
Link to other app with Play Store/App Store fallback
https://github.com/tiaanduplessis/react-native-modest-app-link
app linking store
Last synced: 11 months ago
JSON representation
Link to other app with Play Store/App Store fallback
- Host: GitHub
- URL: https://github.com/tiaanduplessis/react-native-modest-app-link
- Owner: tiaanduplessis
- License: mit
- Created: 2017-07-07T11:14:57.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T22:53:01.000Z (about 7 years ago)
- Last Synced: 2025-08-07T16:05:51.959Z (11 months ago)
- Topics: app, linking, store
- Language: JavaScript
- Size: 83 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
react-native-modest-app-link
Link to other app with Play Store/App Store fallback
Table of Contents
Table of Contents
## About
[](https://greenkeeper.io/)
Wrapper around [React Native Linking](https://facebook.github.io/react-native/docs/linking.html) API to try and open other app. If unsuccessful it falls back to the Play Store or App Store respectively.
## prerequisite
Please make sure linking is setup correctly for your app. Some useful links:
- [React Native Linking Docs](https://facebook.github.io/react-native/docs/linking.html)
- [How to launch app on click of url in android](https://stackoverflow.com/questions/41807300/how-to-launch-app-on-click-of-url-in-android)
- [Launching iOS Applications Via URL](http://www.informit.com/articles/article.aspx?p=2301787)
- [iOS 9 not opening Instagram app with URL SCHEME](https://stackoverflow.com/questions/30987986/ios-9-not-opening-instagram-app-with-url-scheme)
## Install
```sh
$ npm install react-native-modest-app-link
# OR
$ yarn add react-native-modest-app-link
```
## Usage
```js
import appLink from 'react-native-modest-app-link'
appLink('checkersapp://', {
appStoreID: 'id554151744', // defaults to just opening the App Store if not provided
appStoreLocale: 'za', // Defaults to 'us' if not provided
playStoreID: 'za.co.shoprite.eezicoupon' // // defaults to just opening the Play Store if not provided
}).catch((error) => {
// ...
})
```
## Contributing
Contributions are welcome!
1. Fork it.
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
Or open up [a issue](https://github.com/tiaanduplessis/react-native-modest-app-link/issues).
## License
Licensed under the MIT License.