Link to other app with Play Store/App Store fallback
Built with ❤︎ by tiaanduplessis and contributors
Wrapper around React Native Linking API to try and open other app. If unsuccessful it falls back to the Play Store or App Store respectively.
Please make sure linking is setup correctly for your app. Some useful links:
- React Native Linking Docs
- How to launch app on click of url in android
- Launching iOS Applications Via URL
- iOS 9 not opening Instagram app with URL SCHEME
$ npm install react-native-modest-app-link
# OR
$ yarn add react-native-modest-app-link
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) => {
// ...
})
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
Licensed under the MIT License.