react-native-flyy 1.4.37 → 1.4.38

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.
@@ -134,7 +134,7 @@ dependencies {
134
134
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
135
135
 
136
136
  //Flyy sdk dependency
137
- implementation 'com.github.roid-software:flyy-sdk:1.4.54.78'
137
+ implementation 'com.github.roid-software:flyy-sdk:1.4.54.83'
138
138
  // implementation project(path: ':flyy')
139
139
 
140
140
  implementation 'com.google.code.gson:gson:2.8.7'
@@ -477,6 +477,12 @@ class FlyyModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
477
477
  Flyy.setThemeColor(colorPrimary, colorPrimaryDark)
478
478
  }
479
479
 
480
+ @ReactMethod
481
+ fun setCustomThemeColor(topBgColor: String, mainBgColor: String, shadowBgColor: String, offersCardBgColor: String, buttonBGColor: String, headingTextColor: String, subHeadingTextColor: String, extraTextColor: String, labelsTextColor: String, walletCardColor: String, walletInnerCardColor: String, walletSubHeadingColor: String, scratchCardBgColor: String, scratchCardInnerColor: String) {
482
+ Flyy.setDarkThemeColor(topBgColor, mainBgColor, shadowBgColor, offersCardBgColor, buttonBGColor, headingTextColor, subHeadingTextColor, extraTextColor, labelsTextColor, walletCardColor, walletInnerCardColor, walletSubHeadingColor, scratchCardBgColor, scratchCardInnerColor)
483
+ }
484
+
485
+
480
486
  @ReactMethod
481
487
  fun setUserToken(userToken: String) {
482
488
  Flyy.setUserToken(userToken)
@@ -489,6 +489,17 @@ RCT_EXPORT_METHOD(setThemeColor: (NSString *)colorPrimary :(NSString *)colorPrim
489
489
 
490
490
  }
491
491
 
492
+ //set custom theme color
493
+ RCT_EXPORT_METHOD(setCustomThemeColor: (NSString *)topBgColor :(NSString *)mainBgColor :(NSString *)shadowBgColor :(NSString *)offersCardBgColor :(NSString *)buttonBGColor :(NSString *)headingTextColor :(NSString *)subHeadingTextColor :(NSString *)extraTextColor :(NSString *)labelsTextColor :(NSString *)walletCardColor :(NSString *)walletInnerCardColor :(NSString *)walletSubHeadingColor :(NSString *)scratchCardBgColor :(NSString *)scratchCardInnerColor)
494
+ {
495
+ themeColor = topBgColor;
496
+
497
+ //Instance of flyy class
498
+ flyy = [Flyy sharedFlyyInstance];
499
+ [flyy setFlyyThemeColorWithTopBgColor:topBgColor mainBgColor:mainBgColor shadowBgColor:shadowBgColor offersCardBgColor:offersCardBgColor buttonBGColor:buttonBGColor headingTextColor:headingTextColor subHeadingTextColor:subHeadingTextColor extraTextColor:extraTextColor labelsTextColor:labelsTextColor walletCardColor:walletCardColor walletInnerCardColor:walletInnerCardColor walletSubHeadingColor:walletSubHeadingColor scratchCardBgColor:scratchCardBgColor scratchCardInnerColor:scratchCardInnerColor];
500
+
501
+ }
502
+
492
503
  //set user token
493
504
  RCT_EXPORT_METHOD(setUserToken: (NSString *)userToken)
494
505
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-flyy",
3
- "version": "1.4.37",
3
+ "version": "1.4.38",
4
4
  "description": "React Native wrapper around our Android and iOS mobile SDKs",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -65,7 +65,7 @@
65
65
  "pod-install": "^0.1.0",
66
66
  "prettier": "^2.0.5",
67
67
  "react": "17.0.2",
68
- "react-native": "0.67.5",
68
+ "react-native": "0.68.1",
69
69
  "react-native-builder-bob": "^0.17.1",
70
70
  "release-it": "^14.2.2",
71
71
  "typescript": "^4.1.3"