assentify-sdk-react-native 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/android/src/main/java/com/assentifysdk/AssentifySdkModule.kt +3 -1
- package/ios/View/FaceMatchController.swift +36 -9
- package/ios/View/IDCardController.swift +40 -13
- package/ios/View/OtherController.swift +40 -13
- package/ios/View/PassportController.swift +47 -12
- package/ios/View/UI.swift +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -370,7 +370,9 @@ class AssentifySdkModule(context: ReactApplicationContext) :
|
|
|
370
370
|
submitRequestList.add(sharedStepDefinitionsStepFace)
|
|
371
371
|
submitRequestList.add(wrapUp!!)
|
|
372
372
|
submitRequestList.add(blockLoader!!)
|
|
373
|
-
|
|
373
|
+
if(contextAwareSigningModel !=null){
|
|
374
|
+
submitRequestList.add(contextAwareSigningModel!!)
|
|
375
|
+
}
|
|
374
376
|
|
|
375
377
|
|
|
376
378
|
|
|
@@ -19,6 +19,7 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
19
19
|
private var holdHandColor: String;
|
|
20
20
|
private var processingColor: String;
|
|
21
21
|
private var showCountDown: Bool = true;
|
|
22
|
+
private var faceMatch: FaceMatch?;
|
|
22
23
|
|
|
23
24
|
init(assentifySdk: AssentifySdk, nativeAssentifySdk:NativeAssentifySdk?,holdHandColor: String,processingColor: String,secondImage:String,showCountDown:Bool) {
|
|
24
25
|
self.assentifySdk = assentifySdk
|
|
@@ -44,17 +45,17 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
44
45
|
self.view.backgroundColor = .clear
|
|
45
46
|
UIApplication.shared.isStatusBarHidden = false;
|
|
46
47
|
DispatchQueue.main.async {
|
|
47
|
-
|
|
48
|
-
self.addChild(faceMatch!)
|
|
49
|
-
self.view.addSubview(faceMatch!.view)
|
|
50
|
-
faceMatch!.view.translatesAutoresizingMaskIntoConstraints = false
|
|
48
|
+
self.faceMatch = self.assentifySdk?.startFaceMatch(faceMatchDelegate: self, secondImage: self.secondImage,showCountDown:self.showCountDown)
|
|
49
|
+
self.addChild( self.faceMatch!)
|
|
50
|
+
self.view.addSubview( self.faceMatch!.view)
|
|
51
|
+
self.faceMatch!.view.translatesAutoresizingMaskIntoConstraints = false
|
|
51
52
|
NSLayoutConstraint.activate([
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
self.faceMatch!.view.topAnchor.constraint(equalTo: self.view.topAnchor,constant: 0),
|
|
54
|
+
self.faceMatch!.view.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
|
|
55
|
+
self.faceMatch!.view.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
|
|
56
|
+
self.faceMatch!.view.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
|
|
56
57
|
])
|
|
57
|
-
faceMatch!.didMove(toParent: self)
|
|
58
|
+
self.faceMatch!.didMove(toParent: self)
|
|
58
59
|
(self.infoLabel, self.infoImage) = showInfo(view: self.view, text: "Please face within circle",initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor,initialImageName:"info_icon")
|
|
59
60
|
showNavigationBarWithBackArrow(view: self.view, target: self, action: #selector(self.backButtonTapped), initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor,title: "Face Capture")
|
|
60
61
|
}
|
|
@@ -62,6 +63,11 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
62
63
|
@objc func backButtonTapped() {
|
|
63
64
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
64
65
|
DispatchQueue.main.async {
|
|
66
|
+
self.faceMatch?.willMove(toParent: nil)
|
|
67
|
+
self.faceMatch?.view.removeFromSuperview()
|
|
68
|
+
self.faceMatch?.removeFromParent()
|
|
69
|
+
self.faceMatch = nil
|
|
70
|
+
self.closeAllCameras()
|
|
65
71
|
self.dismiss(animated: false)
|
|
66
72
|
}
|
|
67
73
|
}
|
|
@@ -69,11 +75,27 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
69
75
|
func dismissParentViewController() {
|
|
70
76
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
71
77
|
DispatchQueue.main.async {
|
|
78
|
+
self.faceMatch?.willMove(toParent: nil)
|
|
79
|
+
self.faceMatch?.view.removeFromSuperview()
|
|
80
|
+
self.faceMatch?.removeFromParent()
|
|
81
|
+
self.faceMatch = nil
|
|
82
|
+
self.closeAllCameras()
|
|
72
83
|
self.dismiss(animated: false)
|
|
73
84
|
}
|
|
74
85
|
|
|
75
86
|
}
|
|
76
87
|
|
|
88
|
+
func closeAllCameras() {
|
|
89
|
+
children.forEach { child in
|
|
90
|
+
if let captureSession = child.value(forKey: "captureSession") as? AVCaptureSession {
|
|
91
|
+
captureSession.stopRunning()
|
|
92
|
+
}
|
|
93
|
+
child.willMove(toParent: nil)
|
|
94
|
+
child.view.removeFromSuperview()
|
|
95
|
+
child.removeFromParent()
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
77
99
|
@objc func dismissPopUpMessage() {
|
|
78
100
|
DispatchQueue.main.async {
|
|
79
101
|
if(!self.start){
|
|
@@ -146,6 +168,11 @@ class FaceMAtchController: UIViewController ,FaceMatchDelegate
|
|
|
146
168
|
triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.faceExtractedModel)
|
|
147
169
|
|
|
148
170
|
DispatchQueue.main.async {
|
|
171
|
+
self.faceMatch?.willMove(toParent: nil)
|
|
172
|
+
self.faceMatch?.view.removeFromSuperview()
|
|
173
|
+
self.faceMatch?.removeFromParent()
|
|
174
|
+
self.faceMatch = nil
|
|
175
|
+
self.closeAllCameras()
|
|
149
176
|
self.dismiss(animated: false)
|
|
150
177
|
}
|
|
151
178
|
}
|
|
@@ -23,7 +23,7 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
|
|
|
23
23
|
private var titleID:String? = "";
|
|
24
24
|
private var nativeAssentifySdk:NativeAssentifySdk?;
|
|
25
25
|
private var outputResultProperties: [String: Any]? = [:];
|
|
26
|
-
|
|
26
|
+
private var scanID:ScanIDCard?;
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -52,17 +52,17 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
|
|
|
52
52
|
self.view.backgroundColor = .clear
|
|
53
53
|
UIApplication.shared.isStatusBarHidden = false;
|
|
54
54
|
DispatchQueue.main.async {
|
|
55
|
-
|
|
56
|
-
self.addChild(scanID!)
|
|
57
|
-
self.view.addSubview(scanID!.view)
|
|
58
|
-
scanID!.view.translatesAutoresizingMaskIntoConstraints = false
|
|
55
|
+
self.scanID = self.assentifySdk?.startScanID(scanIDCardDelegate: self, kycDocumentDetails: self._kycDocumentDetails,language:self.language)
|
|
56
|
+
self.addChild( self.scanID!)
|
|
57
|
+
self.view.addSubview( self.scanID!.view)
|
|
58
|
+
self.scanID!.view.translatesAutoresizingMaskIntoConstraints = false
|
|
59
59
|
NSLayoutConstraint.activate([
|
|
60
|
-
scanID!.view.topAnchor.constraint(equalTo: self.view.topAnchor,constant: 0),
|
|
61
|
-
scanID!.view.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
|
|
62
|
-
scanID!.view.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
|
|
63
|
-
scanID!.view.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
|
|
60
|
+
self.scanID!.view.topAnchor.constraint(equalTo: self.view.topAnchor,constant: 0),
|
|
61
|
+
self.scanID!.view.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
|
|
62
|
+
self.scanID!.view.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
|
|
63
|
+
self.scanID!.view.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
|
|
64
64
|
])
|
|
65
|
-
scanID!.didMove(toParent: self)
|
|
65
|
+
self.scanID!.didMove(toParent: self)
|
|
66
66
|
(self.infoLabel, self.infoImage) = showInfo(view: self.view, text: "Please Present Your ID",initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor,initialImageName:"info_icon")
|
|
67
67
|
showNavigationBarWithBackArrow(view: self.view, target: self, action: #selector(self.backButtonTapped), initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor,title: self.titleID!)
|
|
68
68
|
}
|
|
@@ -70,18 +70,40 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
|
|
|
70
70
|
@objc func backButtonTapped() {
|
|
71
71
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
72
72
|
DispatchQueue.main.async {
|
|
73
|
-
|
|
73
|
+
self.scanID?.willMove(toParent: nil)
|
|
74
|
+
self.scanID?.view.removeFromSuperview()
|
|
75
|
+
self.scanID?.removeFromParent()
|
|
76
|
+
self.scanID = nil
|
|
77
|
+
self.closeAllCameras();
|
|
78
|
+
self.dismiss(animated: false)
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
func dismissParentViewController() {
|
|
78
83
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
79
84
|
DispatchQueue.main.async {
|
|
80
|
-
|
|
85
|
+
self.scanID?.willMove(toParent: nil)
|
|
86
|
+
self.scanID?.view.removeFromSuperview()
|
|
87
|
+
self.scanID?.removeFromParent()
|
|
88
|
+
self.scanID = nil
|
|
89
|
+
self.closeAllCameras();
|
|
90
|
+
self.dismiss(animated: false)
|
|
81
91
|
}
|
|
82
92
|
|
|
83
93
|
}
|
|
84
94
|
|
|
95
|
+
func closeAllCameras() {
|
|
96
|
+
children.forEach { child in
|
|
97
|
+
if let captureSession = child.value(forKey: "captureSession") as? AVCaptureSession {
|
|
98
|
+
captureSession.stopRunning()
|
|
99
|
+
}
|
|
100
|
+
child.willMove(toParent: nil)
|
|
101
|
+
child.view.removeFromSuperview()
|
|
102
|
+
child.removeFromParent()
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
85
107
|
@objc func dismissPopUpMessage() {
|
|
86
108
|
DispatchQueue.main.async {
|
|
87
109
|
if(!self.start){
|
|
@@ -174,7 +196,12 @@ class IDCardController: UIViewController ,ScanIDCardDelegate , ChildViewControll
|
|
|
174
196
|
UserDefaults.standard.set(outputProperties, forKey: "OutputPropertiesDoc")
|
|
175
197
|
}
|
|
176
198
|
DispatchQueue.main.async {
|
|
177
|
-
|
|
199
|
+
self.scanID?.willMove(toParent: nil)
|
|
200
|
+
self.scanID?.view.removeFromSuperview()
|
|
201
|
+
self.scanID?.removeFromParent()
|
|
202
|
+
self.scanID = nil
|
|
203
|
+
self.closeAllCameras();
|
|
204
|
+
self.dismiss(animated: false)
|
|
178
205
|
}
|
|
179
206
|
|
|
180
207
|
|
|
@@ -22,6 +22,7 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
|
|
|
22
22
|
private var language: String;
|
|
23
23
|
private var apiKey: String;
|
|
24
24
|
private var nativeAssentifySdk:NativeAssentifySdk?;
|
|
25
|
+
private var scanOther:ScanOther?;
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
|
|
@@ -50,17 +51,17 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
|
|
|
50
51
|
self.view.backgroundColor = .clear
|
|
51
52
|
UIApplication.shared.isStatusBarHidden = false;
|
|
52
53
|
DispatchQueue.main.async {
|
|
53
|
-
|
|
54
|
-
self.addChild(scanOther!)
|
|
55
|
-
self.view.addSubview(scanOther!.view)
|
|
56
|
-
scanOther!.view.translatesAutoresizingMaskIntoConstraints = false
|
|
54
|
+
self.scanOther = self.assentifySdk?.startScanOthers(scanOtherDelegate: self,language:self.language)
|
|
55
|
+
self.addChild( self.scanOther!)
|
|
56
|
+
self.view.addSubview( self.scanOther!.view)
|
|
57
|
+
self.scanOther!.view.translatesAutoresizingMaskIntoConstraints = false
|
|
57
58
|
NSLayoutConstraint.activate([
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
self.scanOther!.view.topAnchor.constraint(equalTo: self.view.topAnchor,constant: 0),
|
|
60
|
+
self.scanOther!.view.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
|
|
61
|
+
self.scanOther!.view.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
|
|
62
|
+
self.scanOther!.view.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
|
|
62
63
|
])
|
|
63
|
-
scanOther!.didMove(toParent: self)
|
|
64
|
+
self.scanOther!.didMove(toParent: self)
|
|
64
65
|
(self.infoLabel, self.infoImage) = showInfo(view: self.view, text: "Please Present Your ID",initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor,initialImageName:"info_icon")
|
|
65
66
|
showNavigationBarWithBackArrow(view: self.view, target: self, action: #selector(self.backButtonTapped), initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor,title: "ID Capture")
|
|
66
67
|
|
|
@@ -69,18 +70,39 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
|
|
|
69
70
|
@objc func backButtonTapped() {
|
|
70
71
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
71
72
|
DispatchQueue.main.async {
|
|
72
|
-
|
|
73
|
+
self.scanOther?.willMove(toParent: nil)
|
|
74
|
+
self.scanOther?.view.removeFromSuperview()
|
|
75
|
+
self.scanOther?.removeFromParent()
|
|
76
|
+
self.scanOther = nil
|
|
77
|
+
self.closeAllCameras();
|
|
78
|
+
self.dismiss(animated: false)
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
func dismissParentViewController() {
|
|
77
83
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
78
84
|
DispatchQueue.main.async {
|
|
79
|
-
|
|
85
|
+
self.scanOther?.willMove(toParent: nil)
|
|
86
|
+
self.scanOther?.view.removeFromSuperview()
|
|
87
|
+
self.scanOther?.removeFromParent()
|
|
88
|
+
self.scanOther = nil
|
|
89
|
+
self.closeAllCameras();
|
|
90
|
+
self.dismiss(animated: false)
|
|
80
91
|
}
|
|
81
92
|
|
|
82
93
|
}
|
|
83
|
-
|
|
94
|
+
|
|
95
|
+
func closeAllCameras() {
|
|
96
|
+
children.forEach { child in
|
|
97
|
+
if let captureSession = child.value(forKey: "captureSession") as? AVCaptureSession {
|
|
98
|
+
captureSession.stopRunning()
|
|
99
|
+
}
|
|
100
|
+
child.willMove(toParent: nil)
|
|
101
|
+
child.view.removeFromSuperview()
|
|
102
|
+
child.removeFromParent()
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
84
106
|
@objc func dismissPopUpMessage() {
|
|
85
107
|
DispatchQueue.main.async {
|
|
86
108
|
if(!self.start){
|
|
@@ -152,7 +174,12 @@ class OtherController: UIViewController ,ScanOtherDelegate , ChildViewController
|
|
|
152
174
|
}
|
|
153
175
|
triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.otherExtractedModel)
|
|
154
176
|
DispatchQueue.main.async {
|
|
155
|
-
|
|
177
|
+
self.scanOther?.willMove(toParent: nil)
|
|
178
|
+
self.scanOther?.view.removeFromSuperview()
|
|
179
|
+
self.scanOther?.removeFromParent()
|
|
180
|
+
self.scanOther = nil
|
|
181
|
+
self.closeAllCameras();
|
|
182
|
+
self.dismiss(animated: false)
|
|
156
183
|
}
|
|
157
184
|
|
|
158
185
|
}
|
|
@@ -21,6 +21,7 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
|
|
|
21
21
|
private var language: String;
|
|
22
22
|
private var showCountDown: Bool = true;
|
|
23
23
|
private var apiKey: String? = "";
|
|
24
|
+
private var scanPassport: ScanPassport?;
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
|
|
@@ -51,37 +52,61 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
|
|
|
51
52
|
self.view.backgroundColor = .clear
|
|
52
53
|
UIApplication.shared.isStatusBarHidden = false;
|
|
53
54
|
DispatchQueue.main.async {
|
|
54
|
-
|
|
55
|
-
self.addChild(scanPassport!)
|
|
56
|
-
self.view.addSubview(scanPassport!.view)
|
|
57
|
-
scanPassport!.view.translatesAutoresizingMaskIntoConstraints = false
|
|
55
|
+
self.scanPassport = self.assentifySdk?.startScanPassport(scanPassportDelegate: self,language: self.language)
|
|
56
|
+
self.addChild( self.scanPassport!)
|
|
57
|
+
self.view.addSubview(self.scanPassport!.view)
|
|
58
|
+
self.scanPassport!.view.translatesAutoresizingMaskIntoConstraints = false
|
|
58
59
|
NSLayoutConstraint.activate([
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
self.scanPassport!.view.topAnchor.constraint(equalTo: self.view.topAnchor,constant: 0),
|
|
61
|
+
self.scanPassport!.view.leadingAnchor.constraint(equalTo: self.view.leadingAnchor),
|
|
62
|
+
self.scanPassport!.view.trailingAnchor.constraint(equalTo: self.view.trailingAnchor),
|
|
63
|
+
self.scanPassport!.view.bottomAnchor.constraint(equalTo: self.view.bottomAnchor),
|
|
63
64
|
])
|
|
64
|
-
scanPassport!.didMove(toParent: self)
|
|
65
|
+
self.scanPassport!.didMove(toParent: self)
|
|
65
66
|
(self.infoLabel, self.infoImage) = showInfo(view: self.view, text: "Please Present Your Passport",initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor,initialImageName:"info_icon")
|
|
66
67
|
showNavigationBarWithBackArrow(view: self.view, target: self, action: #selector(self.backButtonTapped), initialTextColorHex:self.processingColor,initialBackgroundColorHex:self.holdHandColor,title: "Passport Capture")
|
|
67
68
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
70
74
|
@objc func backButtonTapped() {
|
|
71
75
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
72
76
|
DispatchQueue.main.async {
|
|
73
|
-
|
|
77
|
+
self.scanPassport?.willMove(toParent: nil)
|
|
78
|
+
self.scanPassport?.view.removeFromSuperview()
|
|
79
|
+
self.scanPassport?.removeFromParent()
|
|
80
|
+
self.scanPassport = nil
|
|
81
|
+
self.closeAllCameras();
|
|
82
|
+
self.dismiss(animated: false)
|
|
74
83
|
}
|
|
75
84
|
}
|
|
76
85
|
|
|
77
86
|
func dismissParentViewController() {
|
|
78
87
|
triggerEvent(eventName:"onBackClick",dataModel:nil)
|
|
79
88
|
DispatchQueue.main.async {
|
|
80
|
-
|
|
89
|
+
self.scanPassport?.willMove(toParent: nil)
|
|
90
|
+
self.scanPassport?.view.removeFromSuperview()
|
|
91
|
+
self.scanPassport?.removeFromParent()
|
|
92
|
+
self.scanPassport = nil
|
|
93
|
+
self.closeAllCameras();
|
|
94
|
+
self.dismiss(animated: false)
|
|
81
95
|
}
|
|
82
96
|
|
|
83
97
|
}
|
|
84
|
-
|
|
98
|
+
|
|
99
|
+
func closeAllCameras() {
|
|
100
|
+
children.forEach { child in
|
|
101
|
+
if let captureSession = child.value(forKey: "captureSession") as? AVCaptureSession {
|
|
102
|
+
captureSession.stopRunning()
|
|
103
|
+
}
|
|
104
|
+
child.willMove(toParent: nil)
|
|
105
|
+
child.view.removeFromSuperview()
|
|
106
|
+
child.removeFromParent()
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
85
110
|
@objc func dismissPopUpMessage() {
|
|
86
111
|
DispatchQueue.main.async {
|
|
87
112
|
if(!self.start){
|
|
@@ -163,6 +188,11 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
|
|
|
163
188
|
}
|
|
164
189
|
triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.passportExtractedModel)
|
|
165
190
|
DispatchQueue.main.async {
|
|
191
|
+
self.scanPassport?.willMove(toParent: nil)
|
|
192
|
+
self.scanPassport?.view.removeFromSuperview()
|
|
193
|
+
self.scanPassport?.removeFromParent()
|
|
194
|
+
self.scanPassport = nil
|
|
195
|
+
self.closeAllCameras();
|
|
166
196
|
self.dismiss(animated: false)
|
|
167
197
|
}
|
|
168
198
|
}
|
|
@@ -175,6 +205,11 @@ class PassportController: UIViewController ,ScanPassportDelegate , ChildViewCont
|
|
|
175
205
|
}
|
|
176
206
|
triggerCompleteEvent(eventName:"onComplete",dataModel:dataModel.passportExtractedModel)
|
|
177
207
|
DispatchQueue.main.async {
|
|
208
|
+
self.scanPassport?.willMove(toParent: nil)
|
|
209
|
+
self.scanPassport?.view.removeFromSuperview()
|
|
210
|
+
self.scanPassport?.removeFromParent()
|
|
211
|
+
self.scanPassport = nil
|
|
212
|
+
self.closeAllCameras();
|
|
178
213
|
self.dismiss(animated: false)
|
|
179
214
|
}
|
|
180
215
|
}
|
package/ios/View/UI.swift
CHANGED
|
@@ -6,7 +6,7 @@ protocol ChildViewControllerDelegate: AnyObject {
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
func showNavigationBarWithBackArrow(view: UIView, target: Any?, action: Selector?, initialTextColorHex: String, initialBackgroundColorHex: String, title: String ){
|
|
9
|
-
let navigationBar = UINavigationBar(frame: CGRect(x: 0, y:
|
|
9
|
+
let navigationBar = UINavigationBar(frame: CGRect(x: 0, y: 55, width: view.frame.size.width, height: 50))
|
|
10
10
|
navigationBar.setBackgroundImage(UIImage(), for: .default)
|
|
11
11
|
navigationBar.shadowImage = UIImage()
|
|
12
12
|
navigationBar.isTranslucent = true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assentify-sdk-react-native",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"description": "This package provides integration with Assentify's services, allowing developers to incorporate Assentify functionalities seamlessly into their applications.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|