Installation
Installing Cotter's React Native SDK can be done using yarn or npm.
Make sure you're using react-native version < 0.63

Install Cotter

Make sure you are using version >= 0.2.0.
yarn
npm
1
yarn add react-native-cotter
Copied!
1
npm install react-native-cotter --save
Copied!
Installing Dependencies for bare React Native project
yarn
npm
1
yarn add react-native-device-info rn-secure-storage react-native-randombytes react-native-camera react-native-svg react-native-securerandom buffer react-native-inappbrowser-reborn react-native-sha256
Copied!
1
npm install --save react-native-device-info rn-secure-storage react-native-randombytes react-native-camera react-native-svg react-native-securerandom buffer react-native-inappbrowser-reborn react-native-sha256
Copied!

For iOS CocoaPods

1
cd ios && pod install && cd ..
Copied!

For Android

Add the following to your android/app/build.gradle
1
android {
2
...
3
defaultConfig {
4
...
5
missingDimensionStrategy 'react-native-camera', 'general'
6
multiDexEnabled true
7
}
8
}
Copied!
Using React Native >= 0.60
πŸŽ‰You're done! Linking the package manually is not required anymore with Autolinking.

(Optional) Additional guides for installation

Using React Native < 0.60
Manual Installation
1
react-native link
2
cd ios && pod install && cd ..
Copied!
Cotter's package doesn't need any manual installation. Cotter is dependent on several packages. Please refer to their docs for manual installation.
Last modified 1yr ago