Skip to content

tiaanduplessis/react-native-modest-app-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-modest-app-link

Link to other app with Play Store/App Store fallback


Built with ❤︎ by tiaanduplessis and contributors

Table of Contents

Table of Contents
  • About
  • Prerequisite
  • Install
  • Usage
  • Contribute
  • License
  • About

    Greenkeeper badge

    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.

    prerequisite

    Please make sure linking is setup correctly for your app. Some useful links:

    Install

    $ npm install react-native-modest-app-link
    # OR
    $ yarn add react-native-modest-app-link

    Usage

    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.

    License

    Licensed under the MIT License.

    About

    Link to other app with Play Store/App Store fallback

    Topics

    Resources

    License

    Stars

    Watchers

    Forks

    Packages

    No packages published