Modify React Native SDK

How to modify included modules set

❗️

Optional

Follow this instruction in case the particular modules are not needed or need to be added.

The full list of modules and their permissions can be found in the modules section of the Android SDK and iOS SDK documentation.

Install RN SDK plugin manually

Android

  1. Add or delete import statement inRNCredoappsdkModule.java file
  2. Add or delete addModule method at CredoAppService initialization
  3. Add or delete dependency declaration in build.gradle file
  4. Add or delete permission in AndroidManifest.xml file

See the example:

iOS

  1. Add or delete import statement inCredoLabModule.swift file
  2. Add or delete addModule method at CredoAppService initialization
  3. Add or delete permission in Info.plist file

See the example:

How to install the plugin manually

📘

You should follow this instruction only if you want to change the included modules

  1. Install the plugin as described in the Install dependencies section.

  2. Go to node_modules directory

  3. Move credoappsdk folder to the same level as app dir, as described:

    parent_dir/
    ....app/
    ....credoappsdk/
    
  4. Open a terminal in app folder and execute:

    yarn add file:../credoappsdk
    
  5. Install iOS dependencies

    cd ios && pod install && cd ..
    
  6. Install Android dependencies

    npm install
    
  7. Run an app