react-native-candle 0.1.16 → 0.1.17
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/ios/Sources/RNCandle.swift +16 -1
- package/package.json +1 -1
|
@@ -55,7 +55,22 @@ final class HybridRNCandle: HybridRNCandleSpec {
|
|
|
55
55
|
try viewModel.showDynamicLoading = showDynamicLoading
|
|
56
56
|
try viewModel.presentationBackground = presentationBackground
|
|
57
57
|
try viewModel.presentationStyle = presentationStyle
|
|
58
|
-
|
|
58
|
+
// FIXME: there's a glitch the first time it's presented unless you do this
|
|
59
|
+
DispatchQueue.main.async { [weak self] in
|
|
60
|
+
guard let self else {
|
|
61
|
+
#if DEBUG
|
|
62
|
+
print("Self was deinitialized \(#function).")
|
|
63
|
+
#endif
|
|
64
|
+
return
|
|
65
|
+
}
|
|
66
|
+
do {
|
|
67
|
+
try self.viewModel.showSheet = isPresented
|
|
68
|
+
} catch {
|
|
69
|
+
#if DEBUG
|
|
70
|
+
print("Failed to present sheet \(#function).")
|
|
71
|
+
#endif
|
|
72
|
+
}
|
|
73
|
+
}
|
|
59
74
|
try viewModel.$linkedAccount
|
|
60
75
|
.removeDuplicates()
|
|
61
76
|
.compactMap { $0 }
|