react-native-uri-scheme

    1.0.20 • Public • Published

    react-native-uri-scheme

    Getting started

    $ npm install react-native-uri-scheme --save

    Mostly automatic installation

    $ react-native link react-native-uri-scheme

    Manual installation

    iOS

    1. Inert pod 'RNUriScheme', :path => '../node_modules/react-native-uri-scheme' into your PodFile

    Android

    1. Open up android/app/src/main/java/[...]/MainActivity.java
    • Add import com.reactlibrary.RNReactNativeUriSchemePackage; to the imports at the top of the file
    • Add new RNReactNativeUriSchemePackage() to the list returned by the getPackages() method
    1. Append the following lines to android/settings.gradle:
      include ':react-native-uri-scheme'
      project(':react-native-uri-scheme').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-uri-scheme/android')
      
    2. Insert the following lines inside the dependencies block in android/app/build.gradle:
        compile project(':react-native-uri-scheme')
      

    Usage

    import RNUriScheme from 'eact-native-uri-scheme';
    
    RNUriScheme.getUriScheme()

    License

    MIT

    Keywords

    Install

    npm i react-native-uri-scheme

    DownloadsWeekly Downloads

    217

    Version

    1.0.20

    License

    MIT

    Unpacked Size

    16.6 kB

    Total Files

    12

    Last publish

    Collaborators

    • aurimas535