Installation
Installing Cotter's React Native SDK can be done using yarn or npm.
Make sure you're using
react-native
version < 0.63Make sure you are using version >= 0.2.0.
yarn
npm
yarn add react-native-cotter
npm install react-native-cotter --save
Installing Dependencies for bare React Native project
yarn
npm
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
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
cd ios && pod install && cd ..
Add the following to your
android/app/build.gradle
android {
...
defaultConfig {
...
missingDimensionStrategy 'react-native-camera', 'general'
multiDexEnabled true
}
}
Using React Native >= 0.60
Using React Native < 0.60
Manual Installation
react-native link
cd ios && pod install && cd ..
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 2yr ago