mirror of
https://github.com/luxfi/wallet.git
synced 2026-10-30 15:13:19 +00:00
Copies apps/extension, apps/mobile and 10 pkgs (wallet, ui, config, utilities, sessions, gating, notifications, analytics, eslint-config, prices) into a standalone pnpm workspace. Resolves merge conflict markers in extension and mobile package.json files, strips build artifacts (.wxt, .output, Pods).
30 lines
568 B
Swift
30 lines
568 B
Swift
//
|
|
// RNWidgets.swift
|
|
// Uniswap
|
|
//
|
|
// Created by Eric Huang on 8/2/23.
|
|
//
|
|
|
|
import Foundation
|
|
import WidgetKit
|
|
|
|
@objc(RNWidgets)
|
|
class RNWidgets: NSObject {
|
|
|
|
@objc
|
|
func hasWidgetsInstalled(_ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) {
|
|
WidgetCenter.shared.getCurrentConfigurations() { result in
|
|
if case .success(let config) = result {
|
|
resolve(config.count > 0)
|
|
} else {
|
|
resolve(false)
|
|
}
|
|
}
|
|
}
|
|
|
|
@objc
|
|
static func requiresMainQueueSetup() -> Bool {
|
|
return false
|
|
}
|
|
}
|