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.
@@ -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
- try viewModel.showSheet = isPresented
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 }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-candle",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Candle SDK for React Native",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",