Compare commits

...
2 Commits
Author SHA1 Message Date
Michele Balistreri 3369498c9f bump version 2022-09-19 14:46:16 +02:00
Michele Balistreri 3bbdf13ef7 refactor the stored property 2022-09-19 14:21:29 +02:00
2 changed files with 12 additions and 2 deletions
+11 -1
View File
@@ -9,8 +9,18 @@ class StatusKeycard: RCTEventEmitter {
var cardChannel: CardChannel? = nil
var nfcStartPrompt: String = "Hold your iPhone near a Status Keycard."
private var _keycardController: Any? = nil
@available(iOS 13.0, *)
private(set) lazy var keycardController: KeycardController? = nil
private var keycardController: KeycardController? {
get {
return _keycardController as? KeycardController
}
set(kc) {
_keycardController = kc
}
}
@objc
func nfcIsSupported(_ resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) -> Void {
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "react-native-status-keycard",
"homepage": "https://keycard.status.im/",
"version": "2.5.37",
"version": "2.5.38",
"description": "React Native library to interact with Status Keycard using NFC connection",
"main": "index.js",
"scripts": {