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
- Add or delete import statement in
RNCredoappsdkModule.java
file - Add or delete
addModule
method atCredoAppService
initialization - Add or delete dependency declaration in
build.gradle
file - Add or delete permission in
AndroidManifest.xml
file
See the example:
🦉
React Native Android: Modify credolabSDK modules
Open Recipe
iOS
- Add or delete import statement in
CredoLabModule.swift
file - Add or delete
addModule
method atCredoAppService
initialization - Add or delete permission in
Info.plist
file
See the example:
🦉
React Native iOS: Modify credolabSDK modules
Open Recipe
How to install the plugin manually
You should follow this instruction only if you want to change the included modules
-
Install the plugin as described in the Install dependencies section.
-
Go to
node_modules
directory -
Move
credoappsdk
folder to the same level as app dir, as described:parent_dir/ ....app/ ....credoappsdk/
-
Open a terminal in
app
folder and execute:yarn add file:../credoappsdk
-
Install iOS dependencies
cd ios && pod install && cd ..
-
Install Android dependencies
npm install
Updated about 2 months ago