react-native-flyy 1.4.3 → 1.4.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.
|
@@ -282,6 +282,12 @@ class FlyyModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
|
|
|
282
282
|
openFlyyRouteActivity(FlyyRouteActivity.FLYY_CHALLENGE_DETAIL_PAGE, null)
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
+
@ReactMethod
|
|
286
|
+
fun openFlyyRafflePage(raffleId: Int) {
|
|
287
|
+
FlyyRouteActivity.OFFER_ID = raffleId
|
|
288
|
+
openFlyyRouteActivity(FlyyRouteActivity.FLYY_OPEN_RAFFLE_PAGE, null)
|
|
289
|
+
}
|
|
290
|
+
|
|
285
291
|
@ReactMethod
|
|
286
292
|
fun openFlyyBonanzaPage() {
|
|
287
293
|
openFlyyRouteActivity(FlyyRouteActivity.FLYY_BONANZA_PAGE, null)
|
|
@@ -28,6 +28,7 @@ public class FlyyRouteActivity extends AppCompatActivity {
|
|
|
28
28
|
public static final String FLYY_INVITE_AND_EARN_PAGE = "flyy_invite_and_earn_page";
|
|
29
29
|
public static final String FLYY_CHALLENGE_DETAIL_PAGE = "flyy_challenge_detail_page";
|
|
30
30
|
public static final String FLYY_BONANZA_PAGE = "flyy_bonanza_page";
|
|
31
|
+
public static final String FLYY_OPEN_RAFFLE_PAGE = "flyy_open_raffle_page";
|
|
31
32
|
|
|
32
33
|
@Override
|
|
33
34
|
protected void onCreate(@Nullable Bundle savedInstanceState) {
|
|
@@ -87,6 +88,9 @@ public class FlyyRouteActivity extends AppCompatActivity {
|
|
|
87
88
|
case FLYY_BONANZA_PAGE:
|
|
88
89
|
Flyy.navigateToBonanzaActivity(this);
|
|
89
90
|
break;
|
|
91
|
+
case FLYY_OPEN_RAFFLE_PAGE:
|
|
92
|
+
Flyy.navigateToRaffleDetailActivity(this, OFFER_ID);
|
|
93
|
+
break;
|
|
90
94
|
default:
|
|
91
95
|
throw new IllegalStateException("Unexpected value: " + activityToOpen);
|
|
92
96
|
}
|
package/ios/ReactNativeFlyy.m
CHANGED
|
@@ -807,7 +807,7 @@ RCT_EXPORT_METHOD(openWalletScreen)
|
|
|
807
807
|
|
|
808
808
|
}
|
|
809
809
|
|
|
810
|
-
//open wallet screen
|
|
810
|
+
//open wallet screen with callback
|
|
811
811
|
RCT_EXPORT_METHOD(openWalletScreenWithCallBack: (RCTResponseSenderBlock)callback)
|
|
812
812
|
{
|
|
813
813
|
flyy = [Flyy sharedFlyyInstance];
|
|
@@ -901,7 +901,7 @@ RCT_EXPORT_METHOD(openFlyyStampsPage)
|
|
|
901
901
|
|
|
902
902
|
}
|
|
903
903
|
|
|
904
|
-
//open
|
|
904
|
+
//open invite details screen
|
|
905
905
|
RCT_EXPORT_METHOD(openFlyyInviteDetailsPage: (NSInteger *)offerId)
|
|
906
906
|
{
|
|
907
907
|
flyy = [Flyy sharedFlyyInstance];
|
|
@@ -932,10 +932,18 @@ RCT_EXPORT_METHOD(openFlyyChallengeDetailPage: (NSInteger *)offerId)
|
|
|
932
932
|
//open bonanza screen
|
|
933
933
|
RCT_EXPORT_METHOD(openFlyyBonanzaPage)
|
|
934
934
|
{
|
|
935
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
935
936
|
|
|
937
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
938
|
+
|
|
939
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
940
|
+
|
|
941
|
+
[self->flyy openBonanzaPage];
|
|
942
|
+
});
|
|
943
|
+
});
|
|
936
944
|
}
|
|
937
945
|
|
|
938
|
-
//open
|
|
946
|
+
//open custom invite and earn screen
|
|
939
947
|
RCT_EXPORT_METHOD(openFlyyCustomInviteAndEarnPage: (NSInteger *)offerId :(NSString *)headerColor)
|
|
940
948
|
{
|
|
941
949
|
flyy = [Flyy sharedFlyyInstance];
|
|
@@ -949,6 +957,7 @@ RCT_EXPORT_METHOD(openFlyyCustomInviteAndEarnPage: (NSInteger *)offerId :(NSStri
|
|
|
949
957
|
});
|
|
950
958
|
}
|
|
951
959
|
|
|
960
|
+
//open invite and earn screen
|
|
952
961
|
RCT_EXPORT_METHOD(openFlyyInviteAndEarnPage: (NSInteger *)offerId)
|
|
953
962
|
{
|
|
954
963
|
flyy = [Flyy sharedFlyyInstance];
|
|
@@ -962,6 +971,20 @@ RCT_EXPORT_METHOD(openFlyyInviteAndEarnPage: (NSInteger *)offerId)
|
|
|
962
971
|
});
|
|
963
972
|
}
|
|
964
973
|
|
|
974
|
+
//open raffle screen
|
|
975
|
+
RCT_EXPORT_METHOD(openFlyyRafflePage: (NSInteger *)raffleId)
|
|
976
|
+
{
|
|
977
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
978
|
+
|
|
979
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
980
|
+
|
|
981
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
});
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
|
|
965
988
|
//our internal protocol stub method
|
|
966
989
|
- (void)onSDKClosedWithScreenName:(NSString * _Nonnull)screenName {
|
|
967
990
|
NSLog(@"%@", screenName);
|
package/package.json
CHANGED