@yuno-payments/yuno-sdk-react-native 1.0.23 → 1.0.24
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.
|
@@ -46,7 +46,13 @@ class YunoPaymentMethodsView: UIView, YunoPaymentFullDelegate {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
var language: String? {
|
|
49
|
-
|
|
49
|
+
// Read language from YunoSdk module that was set during initialization
|
|
50
|
+
if let bridge = RCTBridge.current() {
|
|
51
|
+
if let yunoModule = bridge.module(for: YunoSdk.self) as? YunoSdk {
|
|
52
|
+
return yunoModule.getCurrentLanguage()
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return nil // Fallback to default language
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
var viewController: UIViewController? {
|
package/ios/YunoSdk.swift
CHANGED
|
@@ -443,6 +443,15 @@ class YunoSdk: RCTEventEmitter {
|
|
|
443
443
|
resolver(true)
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
+
/**
|
|
447
|
+
* Gets the current language set during initialization.
|
|
448
|
+
* Used internally by YunoPaymentMethodsView to pass language to delegates.
|
|
449
|
+
*/
|
|
450
|
+
@objc
|
|
451
|
+
func getCurrentLanguage() -> String? {
|
|
452
|
+
return currentLanguage
|
|
453
|
+
}
|
|
454
|
+
|
|
446
455
|
// MARK: - Helper Methods
|
|
447
456
|
|
|
448
457
|
private func mapToCardFormType(_ cardFormType: String) -> CardFormType {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuno-payments/yuno-sdk-react-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "Yuno React Native SDK empowers you to create seamless payment experiences in your native Android and iOS apps built with React Native.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|