react-native-flyy 1.4.38 → 1.4.39

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.83'
137
+ implementation 'com.github.roid-software:flyy-sdk:1.4.54.84'
138
138
  // implementation project(path: ':flyy')
139
139
 
140
140
  implementation 'com.google.code.gson:gson:2.8.7'
@@ -332,10 +332,10 @@ class FlyyModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
332
332
  openFlyyRouteActivity(FlyyRouteActivity.FLYY_QUIZ_PAGE, null)
333
333
  }
334
334
 
335
- //@ReactMethod
336
- //fun setCustomFont(regularFont: String?, mediumFont: String?, boldFont: String?) {
337
- // Flyy.setCustomFontName(regularFont,mediumFont, boldFont);
338
- //}
335
+ @ReactMethod
336
+ fun setCustomFontName(regularFont: String?, mediumFont: String?, boldFont: String?) {
337
+ Flyy.setCustomFontName(regularFont,mediumFont, boldFont)
338
+ }
339
339
 
340
340
  @ReactMethod
341
341
  fun openFlyyQuizHistoryPage() {
@@ -137,15 +137,15 @@ RCT_EXPORT_METHOD(initSDKWithReferralCallback: (NSString *)partnerToken :(int)en
137
137
  }
138
138
 
139
139
  //set custom font
140
- //RCT_EXPORT_METHOD(setCustomFontName: (NSString *)regularFont :(NSString *)mediumFont :(NSString *)boldFont)
141
- //{
142
- // flyy = [Flyy sharedFlyyInstance];
143
- // dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
144
- // dispatch_async(dispatch_get_main_queue(), ^(){
145
- // [self->flyy setCustomFontNameWithRegularFont:regularFont mediumFont:mediumFont boldFont:boldFont];
146
- // });
147
- // });
148
- //}
140
+ RCT_EXPORT_METHOD(setCustomFontName: (NSString *)regularFont :(NSString *)mediumFont :(NSString *)boldFont)
141
+ {
142
+ flyy = [Flyy sharedFlyyInstance];
143
+ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
144
+ dispatch_async(dispatch_get_main_queue(), ^(){
145
+ [self->flyy setCustomFontNameWithRegularFont:regularFont mediumFont:mediumFont boldFont:boldFont];
146
+ });
147
+ });
148
+ }
149
149
 
150
150
  ////Init flyy sdk with theme colors
151
151
  //RCT_EXPORT_METHOD(initSDKWithThemeColors: (NSString *)partnerToken :(int)environment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-flyy",
3
- "version": "1.4.38",
3
+ "version": "1.4.39",
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",