mirror of
https://github.com/status-im/react-native-status-keycard.git
synced 2025-02-28 20:10:28 +00:00
parent
af61b0213a
commit
9c5b897991
@ -9,8 +9,18 @@ class StatusKeycard: RCTEventEmitter {
|
|||||||
var cardChannel: CardChannel? = nil
|
var cardChannel: CardChannel? = nil
|
||||||
var nfcStartPrompt: String = "Hold your iPhone near a Status Keycard."
|
var nfcStartPrompt: String = "Hold your iPhone near a Status Keycard."
|
||||||
|
|
||||||
|
private var _keycardController: Any? = nil
|
||||||
|
|
||||||
@available(iOS 13.0, *)
|
@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
|
@objc
|
||||||
func nfcIsSupported(_ resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) -> Void {
|
func nfcIsSupported(_ resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) -> Void {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-status-keycard",
|
"name": "react-native-status-keycard",
|
||||||
"homepage": "https://keycard.status.im/",
|
"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",
|
"description": "React Native library to interact with Status Keycard using NFC connection",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user