@viafoura/sdk-react-native 0.1.3 → 0.1.4
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.
|
@@ -50,13 +50,11 @@ class RNPreviewComments: ExpoView, VFLoginDelegate, VFLayoutDelegate, VFAdDelega
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
private func initializeSettings() {
|
|
53
|
-
let
|
|
54
|
-
var colors = VFColors(
|
|
53
|
+
let colors = VFColors(
|
|
55
54
|
colorPrimary: resolveColor(key: "colorPrimary", fallbackKey: "primary", fallback: UIColor(red: 0.00, green: 0.45, blue: 0.91, alpha: 1.00)),
|
|
56
55
|
colorPrimaryLight: resolveColor(key: "colorPrimaryLight", fallbackKey: "primaryLight", fallback: UIColor(red: 0.90, green: 0.95, blue: 1.00, alpha: 1.00)),
|
|
57
56
|
colorAvatars: resolveAvatarColors() ?? Constants.AvatarColors.colors
|
|
58
57
|
)
|
|
59
|
-
colors.setTheme(theme: resolvedTheme)
|
|
60
58
|
let fonts = VFFonts(fontBold: fontBold)
|
|
61
59
|
settings = VFSettings(colors: colors, fonts: fonts)
|
|
62
60
|
|
|
@@ -109,7 +107,7 @@ class RNPreviewComments: ExpoView, VFLoginDelegate, VFLayoutDelegate, VFAdDelega
|
|
|
109
107
|
addSubview(vc.view)
|
|
110
108
|
vc.view.frame = bounds
|
|
111
109
|
vc.didMove(toParent: parentVC)
|
|
112
|
-
vc.setTheme(theme:
|
|
110
|
+
vc.setTheme(theme: resolveTheme())
|
|
113
111
|
self.previewCommentsViewController = vc
|
|
114
112
|
}
|
|
115
113
|
|
|
@@ -147,7 +145,7 @@ class RNPreviewComments: ExpoView, VFLoginDelegate, VFLayoutDelegate, VFAdDelega
|
|
|
147
145
|
}
|
|
148
146
|
}
|
|
149
147
|
profileVC.setActionCallbacks(callbacks: callbacks)
|
|
150
|
-
profileVC.setTheme(theme:
|
|
148
|
+
profileVC.setTheme(theme: resolveTheme())
|
|
151
149
|
parentVC.present(profileVC, animated: true)
|
|
152
150
|
}
|
|
153
151
|
|
|
@@ -173,7 +171,7 @@ class RNPreviewComments: ExpoView, VFLoginDelegate, VFLayoutDelegate, VFAdDelega
|
|
|
173
171
|
}
|
|
174
172
|
}
|
|
175
173
|
newCommentVC.setActionCallbacks(callbacks: callbacks)
|
|
176
|
-
newCommentVC.setTheme(theme:
|
|
174
|
+
newCommentVC.setTheme(theme: resolveTheme())
|
|
177
175
|
parentVC.present(newCommentVC, animated: true)
|
|
178
176
|
}
|
|
179
177
|
|