react-native-flyy 1.4.32 → 1.4.33

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.
Files changed (36) hide show
  1. package/android/.project +1 -1
  2. package/android/.settings/org.eclipse.buildship.core.prefs +5 -2
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/java/com/reactnativeflyy/FlyyModule.kt +155 -49
  5. package/android/src/main/java/com/reactnativeflyy/FlyyRouteActivity.java +16 -0
  6. package/ios/Montserrat-Bold.ttf +0 -0
  7. package/ios/ReactNativeFlyy.m +276 -122
  8. package/lib/commonjs/assets/images/check.png +0 -0
  9. package/lib/commonjs/assets/images/medal.png +0 -0
  10. package/lib/commonjs/assets/images/radio.png +0 -0
  11. package/lib/commonjs/assets/images/reward_flyy.png +0 -0
  12. package/lib/commonjs/assets/images/xmark.png +0 -0
  13. package/lib/commonjs/flyy_checkin_view.js +379 -0
  14. package/lib/commonjs/flyy_checkin_view.js.map +1 -0
  15. package/lib/commonjs/index.js +634 -3
  16. package/lib/commonjs/index.js.map +1 -1
  17. package/lib/module/assets/images/check.png +0 -0
  18. package/lib/module/assets/images/medal.png +0 -0
  19. package/lib/module/assets/images/radio.png +0 -0
  20. package/lib/module/assets/images/reward_flyy.png +0 -0
  21. package/lib/module/assets/images/xmark.png +0 -0
  22. package/lib/module/flyy_checkin_view.js +365 -0
  23. package/lib/module/flyy_checkin_view.js.map +1 -0
  24. package/lib/module/index.js +616 -3
  25. package/lib/module/index.js.map +1 -1
  26. package/lib/typescript/flyy_checkin_view.d.ts +19 -0
  27. package/lib/typescript/index.d.ts +32 -0
  28. package/package.json +3 -1
  29. package/react-native-flyy.podspec +1 -1
  30. package/src/assets/images/check.png +0 -0
  31. package/src/assets/images/medal.png +0 -0
  32. package/src/assets/images/radio.png +0 -0
  33. package/src/assets/images/reward_flyy.png +0 -0
  34. package/src/assets/images/xmark.png +0 -0
  35. package/src/flyy_checkin_view.tsx +213 -0
  36. package/src/index.tsx +548 -1
@@ -1,9 +1,387 @@
1
- import React from 'react';
2
- import { Image, NativeModules, Text, TouchableOpacity, View } from 'react-native';
1
+ // @ts-nocheck
2
+ import React, { useEffect, useState } from 'react';
3
+ import { Image, NativeModules, Text, TouchableOpacity, View, Dimensions, ToastAndroid, Linking, FlatList, Alert } from 'react-native';
4
+ import FlyyCheckinComponent from './flyy_checkin_view';
5
+ import AsyncStorage from '@react-native-async-storage/async-storage';
6
+ import Draggable from 'react-native-draggable';
3
7
  const {
4
8
  Flyy
5
9
  } = NativeModules;
6
- export default Flyy;
10
+ export default Flyy; // ****** Flyy CheckinView Widget ******
11
+
12
+ export const FlyyCheckinView = props => {
13
+ return /*#__PURE__*/React.createElement(FlyyCheckinComponent, {
14
+ style: {
15
+ checkInBtnTextColor: props.checkInBtnTextColor,
16
+ checkInTitleColor: props.checkInTitleColor,
17
+ checkInDescriptionColor: props.checkInDescriptionColor,
18
+ checkInDaysColor: props.checkInDaysColor,
19
+ checkInEarnColor: props.checkInEarnColor,
20
+ fontFamily: props.fontFamily
21
+ }
22
+ });
23
+ };
24
+ const windowHeight = Dimensions.get('window').height;
25
+ const windowWidth = Dimensions.get('window').width; // ****** Flyy Floating Widget ******
26
+
27
+ export const FlyyFloatingWidget = ({
28
+ props = {
29
+ backgroundColor: "#654EA3",
30
+ buttonHeight: 55,
31
+ buttonWidth: 55,
32
+ buttonCornerRadius: 40,
33
+ buttonIcon: require('./assets/images/rewardwidget.png'),
34
+ onPress: () => {},
35
+ x: windowWidth - 75,
36
+ y: windowHeight - 100,
37
+ minX: 5,
38
+ minY: 5,
39
+ maxX: windowWidth - 5,
40
+ maxY: windowHeight - 5,
41
+ show: true,
42
+ stick: false,
43
+ startDate: 0,
44
+ endDate: 0
45
+ }
46
+ }) => {
47
+ var _props$minX, _props$minY, _props$maxX, _props$maxY;
48
+
49
+ const [showWidget, setShowWidget] = useState(false);
50
+ const [userData, setUserData] = useState({});
51
+ const [iconUrl, setIconUrl] = useState(require('./assets/images/rewardwidget.png'));
52
+ const [backgroundColor, setBackgroundColor] = useState("#654EA3");
53
+ const [buttonSize, setButtonSize] = useState(55);
54
+ const [buttonXPosition, setButtonXPosition] = useState(windowWidth - 75);
55
+ const [buttonYPosition, setButtonYPosition] = useState(windowHeight - 200);
56
+ const [deeplink, setDeeplink] = useState(null);
57
+ const flyyConfigDate = "flyy_config_date";
58
+ const flyyConfigUserId = "user_id";
59
+ var oldState = null;
60
+ var currentState = null;
61
+ var data = null;
62
+ useEffect(() => {
63
+ fetchData();
64
+ }, []);
65
+
66
+ const fetchData = async () => {
67
+ const sdkInfo = await Flyy.getUserData();
68
+ const appData = await Flyy.getAppData();
69
+ const resp = await fetch(`https://${sdkInfo["environment"] == 0 ? "ghc-stage" : "ghc"}.theflyy.com/api/v8/flyy_app_info`, {
70
+ headers: {
71
+ "X-Key": sdkInfo["partner_id"],
72
+ "Content-Type": "application/json",
73
+ "X-App-Data": appData
74
+ }
75
+ });
76
+ data = await resp.json();
77
+
78
+ if (!data.success) {
79
+ if (Platform.OS === 'android') {
80
+ ToastAndroid.show(data.message, ToastAndroid.SHORT);
81
+ } else {
82
+ // Toast.showWithGravity(data.message, Toast.SHORT, Toast.BOTTOM);
83
+ Alert.alert(data.message);
84
+ }
85
+
86
+ return;
87
+ }
88
+
89
+ const widgetConfig = data.info.floating_widget_configuration;
90
+
91
+ if (widgetConfig.icon_url != null && widgetConfig.icon_url != '') {
92
+ setIconUrl({
93
+ uri: widgetConfig.icon_url
94
+ });
95
+ } else {
96
+ setIconUrl(props.buttonIcon);
97
+ }
98
+
99
+ if (widgetConfig.color != null && widgetConfig.color != '') {
100
+ setBackgroundColor(widgetConfig.color);
101
+ } else {
102
+ setBackgroundColor(props.backgroundColor);
103
+ }
104
+
105
+ if (widgetConfig.size != null && widgetConfig.color != 0) {
106
+ setButtonSize(parseInt(data.info.floating_widget_configuration.size));
107
+ } else {
108
+ setButtonSize(props.buttonHeight);
109
+ } //FloatingButton Position
110
+
111
+
112
+ if (widgetConfig.position == "bottom_left") {
113
+ setButtonXPosition(10);
114
+ } else if (widgetConfig.position == "bottom_right") {
115
+ setButtonXPosition(windowWidth - 75);
116
+ } else if (widgetConfig.position == "upper_left") {
117
+ setButtonXPosition(10);
118
+
119
+ if (Platform.OS === 'android') {
120
+ setButtonYPosition(10);
121
+ } else {
122
+ setButtonYPosition(50);
123
+ }
124
+ } else if (widgetConfig.position == "upper_right") {
125
+ setButtonXPosition(windowWidth - 75);
126
+
127
+ if (Platform.OS === 'android') {
128
+ setButtonYPosition(10);
129
+ } else {
130
+ setButtonYPosition(50);
131
+ }
132
+ } //Set DeepLink
133
+
134
+
135
+ if (widgetConfig.deeplink != null && widgetConfig.deeplink != "") {
136
+ setDeeplink(widgetConfig.deeplink);
137
+ } //Set Visibility of FloatingButton
138
+
139
+
140
+ var currentDate = new Date();
141
+ const getDate = await AsyncStorage.getItem(flyyConfigDate);
142
+ const userId = await AsyncStorage.getItem(flyyConfigUserId);
143
+ var date = new Date(parseInt(getDate));
144
+ const diffTime = Math.abs(getDate - currentDate);
145
+ const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24)) - 1;
146
+
147
+ if (diffDays != 0 || userId == null || userId != sdkInfo[flyyConfigUserId]) {
148
+ var data = await Flyy.getAppOccurence(1);
149
+ await AsyncStorage.setItem(flyyConfigUserId, sdkInfo[flyyConfigUserId]);
150
+ }
151
+
152
+ const occurrenceCount = await Flyy.getAppOccurence(0);
153
+
154
+ if (widgetConfig.show_to_user && occurrenceCount <= parseInt(widgetConfig.num_times)) {
155
+ // var numberOfDaysToAdd = widgetConfig.num_days+1;
156
+ // var result = currentDate.setDate(currentDate.getDate() + numberOfDaysToAdd);
157
+ if (getDate === null || userId == null || userId != sdkInfo[flyyConfigUserId]) {
158
+ await AsyncStorage.setItem(flyyConfigDate, JSON.stringify(currentDate.getTime()));
159
+ }
160
+
161
+ const getDate2 = await AsyncStorage.getItem(flyyConfigDate);
162
+ var date = new Date(parseInt(getDate2));
163
+ const diffTime = Math.abs(getDate2 - currentDate);
164
+ const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24)) - 1; //Show widget on same day
165
+
166
+ if (diffDays === 0 || diffDays === -1) {
167
+ setShowWidget(true);
168
+ } else {
169
+ //reset occurrence on next day
170
+ await Flyy.getAppOccurence(1);
171
+
172
+ if (diffDays >= parseInt(widgetConfig.num_days) + 1) {
173
+ await AsyncStorage.setItem(flyyConfigDate, JSON.stringify(currentDate.getTime()));
174
+ setShowWidget(true);
175
+ }
176
+ }
177
+ } else {
178
+ setShowWidget(false);
179
+ const getDate2 = await AsyncStorage.getItem(flyyConfigDate);
180
+ var date = new Date(parseInt(getDate2));
181
+ const diffTime = Math.abs(getDate2 - currentDate);
182
+ const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
183
+
184
+ if (diffDays != 1) {
185
+ var data = await Flyy.getAppOccurence(1);
186
+ }
187
+ }
188
+ }; // if(props.show){
189
+ // if(props.startDate != null && props.startDate != 0){
190
+ // var now = new Date().getTime();
191
+ // if(now >= props.startDate && now <= props.endDate){
192
+ // props.show = true
193
+ // }else{
194
+ // props.show = false
195
+ // }
196
+ // }
197
+ // }
198
+ // AppState.addEventListener('change', state =>{
199
+ // console.log('AppState updated to', AppState.currentState)
200
+ // oldState = currentState;
201
+ // currentState = state;
202
+ // if(oldState == null){
203
+ // console.log('App is newly start :::')
204
+ // }})
205
+
206
+
207
+ return (// @ts-ignore
208
+ props.show && showWidget ? /*#__PURE__*/React.createElement(Draggable, {
209
+ x: buttonXPosition,
210
+ y: buttonYPosition,
211
+ minX: (_props$minX = props.minX) !== null && _props$minX !== void 0 ? _props$minX : 5,
212
+ minY: (_props$minY = props.minY) !== null && _props$minY !== void 0 ? _props$minY : 5,
213
+ maxX: (_props$maxX = props.maxX) !== null && _props$maxX !== void 0 ? _props$maxX : windowWidth - 5,
214
+ maxY: (_props$maxY = props.maxY) !== null && _props$maxY !== void 0 ? _props$maxY : windowHeight - 5,
215
+ renderSize: 56 // shouldReverse = {true}
216
+ ,
217
+ onDragRelease: props.stick ? () => {} : null,
218
+ isCircle: true
219
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
220
+ onPress: deeplink != null ? async () => {
221
+ if (Platform.OS === 'android' || !deeplink.startsWith("flyy://")) {
222
+ const supported = await Linking.canOpenURL(deeplink);
223
+ await Linking.openURL(deeplink);
224
+ } else {
225
+ navigateTo(deeplink);
226
+ }
227
+ } : props.onPress,
228
+ style: {
229
+ height: buttonSize,
230
+ width: buttonSize,
231
+ backgroundColor: backgroundColor,
232
+ borderRadius: buttonSize / 2,
233
+ justifyContent: 'center',
234
+ alignItems: 'center'
235
+ }
236
+ }, /*#__PURE__*/React.createElement(Image, {
237
+ source: iconUrl,
238
+ style: {
239
+ height: buttonSize * 55 / 100,
240
+ width: buttonSize * 55 / 100
241
+ }
242
+ }), /*#__PURE__*/React.createElement(TouchableOpacity, {
243
+ onPress: () => {
244
+ props.show = false;
245
+ setShowWidget(false);
246
+ },
247
+ style: {
248
+ height: 20,
249
+ width: 20,
250
+ backgroundColor: "transparent",
251
+ position: 'absolute',
252
+ left: buttonSize - 11,
253
+ bottom: buttonSize * 72 / 100
254
+ }
255
+ }, /*#__PURE__*/React.createElement(Image, {
256
+ source: require('./assets/images/xmark.png'),
257
+ style: {
258
+ height: 18,
259
+ width: 18,
260
+ tintColor: "black"
261
+ }
262
+ })))) : /*#__PURE__*/React.createElement(View, null)
263
+ );
264
+ };
265
+
266
+ const navigateTo = deeplink => {
267
+ let components = deeplink.split("/");
268
+ let screenCode = components[components.length - 1];
269
+
270
+ switch (screenCode) {
271
+ case "flyy_offers":
272
+ {
273
+ Flyy.openOffersScreen();
274
+ }
275
+ break;
276
+
277
+ case "challenge_details":
278
+ {
279
+ Flyy.openFlyyChallengeDetailPage(0);
280
+ }
281
+ break;
282
+
283
+ case "flyy_quiz_list":
284
+ {
285
+ Flyy.openFlyyQuizListPage();
286
+ }
287
+ break;
288
+
289
+ case "stamp_campaign_new":
290
+ {
291
+ Flyy.openFlyyStampsPage();
292
+ }
293
+ break;
294
+
295
+ case "campaign_home":
296
+ {
297
+ Flyy.openFlyyStampsPage();
298
+ }
299
+ break;
300
+
301
+ case "bonanza_details":
302
+ {
303
+ Flyy.openFlyyBonanzaPage();
304
+ }
305
+ break;
306
+
307
+ case "invite_earn":
308
+ {
309
+ Flyy.openFlyyInviteAndEarnPage(0);
310
+ }
311
+ break;
312
+
313
+ case "invite_details":
314
+ {
315
+ Flyy.openFlyyInviteDetailsPage(0);
316
+ }
317
+ break;
318
+
319
+ case "custom_invite_details":
320
+ {
321
+ Flyy.openFlyyCustomInviteAndEarnPage(0, FlyyFlutterPlugin.themeColor);
322
+ }
323
+ break;
324
+
325
+ case "raffle_details":
326
+ {
327
+ Flyy.openFlyyRafflePage(0);
328
+ }
329
+ break;
330
+
331
+ case "quiz_history":
332
+ {
333
+ Flyy.openFlyyQuizHistoryPage();
334
+ }
335
+ break;
336
+
337
+ case "flyy_rewards":
338
+ {
339
+ Flyy.openRewardsScreen();
340
+ }
341
+ break;
342
+
343
+ case "flyy_referrals":
344
+ {
345
+ Flyy.openReferralHistory();
346
+ }
347
+ break;
348
+
349
+ case "flyy_gift_cards":
350
+ {
351
+ Flyy.openGiftCardScreen();
352
+ }
353
+ break;
354
+
355
+ case "flyy_wallet":
356
+ {
357
+ Flyy.openWalletScreen();
358
+ }
359
+ break;
360
+
361
+ case "game_list":
362
+ {
363
+ Flyy.openFlyyGamesPage();
364
+ }
365
+ break;
366
+
367
+ case "flyy_bonanza":
368
+ {
369
+ Flyy.openFlyyBonanzaPage();
370
+ }
371
+ break;
372
+
373
+ case "flyy_quiz_detail":
374
+ {
375
+ Flyy.openFlyyQuizPage(0);
376
+ }
377
+ break;
378
+
379
+ default:
380
+ // Toast.showWithGravity("ACTION NOT FOUND", Toast.SHORT, Toast.BOTTOM);
381
+ Alert.alert("ACTION NOT FOUND");
382
+ }
383
+ };
384
+
7
385
  export const FlyyWidget = ({
8
386
  widgetStyle = {
9
387
  rewardsButtonIcon: require('./assets/images/rewardwidget.png'),
@@ -138,5 +516,240 @@ const FlyyCardView = ({
138
516
  height: 10
139
517
  }
140
518
  }));
519
+ }; // ****** Flyy Stories Widget ******
520
+
521
+
522
+ export const FlyyStories = ({
523
+ widgetStyle = {
524
+ titleColor: 'black',
525
+ iconButtonBgColor: '#654EA3',
526
+ fontSize: 16.0,
527
+ iconCornerRadius: 55,
528
+ iconSize: 60,
529
+ iconBgSize: 100
530
+ }
531
+ }) => {
532
+ const [data, setData] = useState(null);
533
+ useEffect(() => {
534
+ fetchStoriesData();
535
+ }, []);
536
+
537
+ const fetchStoriesData = async () => {
538
+ const sdkInfo = await Flyy.getUserData();
539
+ const appData = await Flyy.getAppData();
540
+ const resp = await fetch(`https://${sdkInfo["environment"] == 0 ? "ghc-stage" : "ghc"}.theflyy.com/api/storyboard`, {
541
+ headers: {
542
+ "X-Key": sdkInfo["partner_id"],
543
+ "Content-Type": "application/json",
544
+ "X-App-Data": appData
545
+ }
546
+ });
547
+ const responseData = await resp.json();
548
+ setData(responseData.storyboard_items);
549
+ };
550
+
551
+ const navigateTo = screenCode => {
552
+ switch (screenCode) {
553
+ case "offers":
554
+ {
555
+ Flyy.openOffersScreen();
556
+ }
557
+ break;
558
+
559
+ case "spin_wheel":
560
+ {
561
+ Flyy.openFlyySpinTheWheelPage(0);
562
+ }
563
+ break;
564
+
565
+ case "challenge":
566
+ {
567
+ Flyy.openFlyyChallengeDetailPage(0);
568
+ }
569
+ break;
570
+
571
+ case "quiz_list":
572
+ {
573
+ Flyy.openFlyyQuizListPage();
574
+ }
575
+ break;
576
+
577
+ case "stamp_campaign":
578
+ {
579
+ Flyy.openFlyyStampsPage();
580
+ }
581
+ break;
582
+
583
+ case "campaign_home":
584
+ {
585
+ Flyy.openFlyyStampsPage();
586
+ }
587
+ break;
588
+
589
+ case "bonanza_details":
590
+ {
591
+ Flyy.openFlyyBonanzaPage();
592
+ }
593
+ break;
594
+
595
+ case "invite_earn":
596
+ {
597
+ Flyy.openFlyyInviteAndEarnPage(0);
598
+ }
599
+ break;
600
+
601
+ case "invite_details":
602
+ {
603
+ Flyy.openFlyyInviteDetailsPage(0);
604
+ }
605
+ break;
606
+
607
+ case "custom_invite_details":
608
+ {
609
+ Flyy.openFlyyCustomInviteAndEarnPage(0, FlyyFlutterPlugin.themeColor);
610
+ }
611
+ break;
612
+
613
+ case "raffle":
614
+ {
615
+ Flyy.openFlyyRafflePage(0);
616
+ }
617
+ break;
618
+
619
+ case "quiz_history":
620
+ {
621
+ Flyy.openFlyyQuizHistoryPage();
622
+ }
623
+ break;
624
+
625
+ case "flyy_rewards":
626
+ {
627
+ Flyy.openRewardsScreen();
628
+ }
629
+ break;
630
+
631
+ case "referrals":
632
+ {
633
+ Flyy.openReferralHistory();
634
+ }
635
+ break;
636
+
637
+ case "flyy_gift_cards":
638
+ {
639
+ Flyy.openGiftCardScreen();
640
+ }
641
+ break;
642
+
643
+ case "wallet":
644
+ {
645
+ Flyy.openWalletScreen();
646
+ }
647
+ break;
648
+
649
+ case "game_list":
650
+ {
651
+ Flyy.openFlyyGamesPage();
652
+ }
653
+ break;
654
+
655
+ case "bonanza":
656
+ {
657
+ Flyy.openFlyyBonanzaPage();
658
+ }
659
+ break;
660
+
661
+ case "quiz_detail":
662
+ {
663
+ Flyy.openFlyyQuizPage(0);
664
+ }
665
+ break;
666
+
667
+ default:
668
+ // Toast.showWithGravity("ACTION NOT FOUND", Toast.SHORT, Toast.BOTTOM);
669
+ Alert.alert("ACTION NOT FOUND");
670
+ }
671
+ };
672
+
673
+ const StoriesItem = ({
674
+ data
675
+ }) => {
676
+ var _widgetStyle$iconButt, _widgetStyle$iconBgSi, _widgetStyle$iconBgSi2, _widgetStyle$iconCorn, _widgetStyle$titleCol, _widgetStyle$fontSize;
677
+
678
+ return /*#__PURE__*/React.createElement(View, {
679
+ style: {
680
+ alignItems: 'center'
681
+ }
682
+ }, /*#__PURE__*/React.createElement(View, {
683
+ style: {
684
+ height: 10
685
+ }
686
+ }), /*#__PURE__*/React.createElement(TouchableOpacity, {
687
+ onPress: () => {
688
+ navigateTo(data.screen_code);
689
+ },
690
+ style: {
691
+ backgroundColor: (_widgetStyle$iconButt = widgetStyle.iconButtonBgColor) !== null && _widgetStyle$iconButt !== void 0 ? _widgetStyle$iconButt : '#654EA3',
692
+ height: (_widgetStyle$iconBgSi = widgetStyle.iconBgSize) !== null && _widgetStyle$iconBgSi !== void 0 ? _widgetStyle$iconBgSi : 60,
693
+ width: (_widgetStyle$iconBgSi2 = widgetStyle.iconBgSize) !== null && _widgetStyle$iconBgSi2 !== void 0 ? _widgetStyle$iconBgSi2 : 60,
694
+ borderRadius: (_widgetStyle$iconCorn = widgetStyle.iconCornerRadius) !== null && _widgetStyle$iconCorn !== void 0 ? _widgetStyle$iconCorn : 55,
695
+ alignSelf: 'center',
696
+ justifyContent: 'center',
697
+ alignItems: 'center',
698
+ marginHorizontal: 10
699
+ }
700
+ }, /*#__PURE__*/React.createElement(Image, {
701
+ source: {
702
+ uri: data.icon_url
703
+ },
704
+ style: {
705
+ height: 60,
706
+ width: 60
707
+ }
708
+ })), /*#__PURE__*/React.createElement(View, {
709
+ style: {
710
+ height: 10
711
+ }
712
+ }), /*#__PURE__*/React.createElement(View, {
713
+ style: {
714
+ width: 120
715
+ }
716
+ }, /*#__PURE__*/React.createElement(Text, {
717
+ style: {
718
+ alignSelf: 'center',
719
+ flexShrink: 1,
720
+ color: (_widgetStyle$titleCol = widgetStyle.titleColor) !== null && _widgetStyle$titleCol !== void 0 ? _widgetStyle$titleCol : 'black',
721
+ fontSize: (_widgetStyle$fontSize = widgetStyle.fontSize) !== null && _widgetStyle$fontSize !== void 0 ? _widgetStyle$fontSize : 14,
722
+ fontFamily: 'Montserrat-Bold',
723
+ textAlign: 'center',
724
+ paddingLeft: 5,
725
+ paddingRight: 5
726
+ },
727
+ numberOfLines: 2
728
+ }, data.title)), /*#__PURE__*/React.createElement(View, {
729
+ style: {
730
+ height: 10
731
+ }
732
+ }));
733
+ };
734
+
735
+ return /*#__PURE__*/React.createElement(View, {
736
+ style: {
737
+ flexDirection: "row",
738
+ justifyContent: "center",
739
+ width: "100%",
740
+ alignItems: 'center',
741
+ alignContent: 'center',
742
+ backgroundColor: "white"
743
+ }
744
+ }, /*#__PURE__*/React.createElement(FlatList, {
745
+ horizontal: true,
746
+ data: data,
747
+ renderItem: ({
748
+ item
749
+ }) => /*#__PURE__*/React.createElement(StoriesItem, {
750
+ data: item
751
+ }),
752
+ keyExtractor: item => item.id
753
+ }));
141
754
  };
142
755
  //# sourceMappingURL=index.js.map