@@ -34,7 +34,7 @@ If you're using CocoaPods, navigate to your `ios` and update your `Podfile`:
3434
3535``` diff
3636 pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
37- + `pod 'react-native-yoti-doc-scan', :path => '../node_modules/react-native-yoti-doc-scan/react-native-yoti-doc-scan.podspec'`
37+ + `pod 'react-native-yoti-doc-scan', :path => '../node_modules/@getyoti/ react-native-yoti-doc-scan/react-native-yoti-doc-scan.podspec'`
3838end
3939```
4040
@@ -123,13 +123,21 @@ android {
123123
124124```
125125
126+ > Running out of memory ` space: java.lang.OutOfMemoryError: Java heap space `
127+
128+ Resolve by increasing the daemon memory settings in your ` gradle.properties ` file:
129+
130+ ``` groovy
131+ org.gradle.jvmargs=-Xmx4608m
132+ ```
133+
126134# Usage
127135
128136The SDK exposes a single method, ` startSession() ` , which handles communication between your app and the Yoti app on a user's device.
129137
130138Import the SDK with:
131139``` javascript
132- import YotiDocScan from ' @getyoti/react-native-yoti-doc-scan;
140+ import YotiDocScan from ' @getyoti/react-native-yoti-doc-scan' ;
133141```
134142
135143Call the ` startSession ` method with your session ID and client session token.
@@ -204,8 +212,7 @@ Add the following to your settings.gradle file as a new entry before the last li
204212
205213``` groovy
206214 include ':react-native-yoti-doc-scan'
207- project(' : react- native- yoti- doc- scan' ).projectDir = new
208- File(rootProject.projectDir, ' ../ node_modules/ react- native- yoti- doc- scan/ src/ android' )
215+ project(':react-native-yoti-doc-scan').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-yoti-doc-scan/src/android')
209216
210217 include ':app'
211218```
0 commit comments