Skip to main content

Installation

Prerequisites

  • NodeJS 14+
  • React-Native 0.65+

How to install

yarn add git+ssh://git@bitbucket.org/shareringvietnam/shr-login.git

Dependencies libs

    "axios": "^0.21.1",
"lodash": "^4.17.10",
"react-native-simple-dialogs": "^1.2.0",
"shr-keys": "git+ssh://git@bitbucket.org/shareringvietnam/bc_shrcrypto.git#mobile/pubkeyTm",
"shr-client": "git+ssh://git@bitbucket.org/shareringvietnam/share-client-fix.git#develop",
"shr-client-ts": "git+ssh://git@bitbucket.org/shareringvietnam/shr-client-ts.git#develop",
"apollo-boost": "^0.1.16",
"apollo-cache-inmemory": "^1.6.6",
"graphql": "^0.13.2",
"graphql-tag": "^2.9.2",
"react-native-fs": "^2.14.1",
"react-native-keychain": "^6.2.0",
"@react-native-async-storage/async-storage": "^1.15.7",
"react-native-popup-dialog": "^0.18.3",
"rn-fetch-blob": "^0.10.16",
"react-native-camera": "^4.2.1",
"react-native-image-picker": "2.3.4",
"react-native-qr-image-reader": "^1.0.5"

Setup for auto login via ShareRing app

Android: AndroidManifest.xml


<activity
...
>
...
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="@string/app_scheme" />
</intent-filter>
...
</activity>

iOS: AppDelegate.m

  #import <React/RCTLinkingManager.h>

//add this in end of function didFinishLaunchingWithOptions

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
return [RCTLinkingManager application:app openURL:url options:options];
}