react-native-flyy 1.4.50 → 1.4.52

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.
@@ -1,10 +1,11 @@
1
1
  buildscript {
2
2
  // Buildscript is evaluated before everything else so we can't use getExtOrDefault
3
- def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['Flyy_kotlinVersion']
3
+ // def kotlin_version = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : project.properties['Flyy_kotlinVersion']
4
+ def kotlin_version = "1.8.20"
4
5
 
5
6
  repositories {
6
7
  google()
7
- jcenter()
8
+ mavenCentral()
8
9
  }
9
10
 
10
11
  dependencies {
@@ -52,13 +53,9 @@ android {
52
53
 
53
54
  repositories {
54
55
  mavenCentral()
55
- jcenter()
56
56
  google()
57
57
 
58
- maven {
59
- url "https://jitpack.io"
60
- credentials { username authToken }
61
- }
58
+ maven { url 'https://jitpack.io' }
62
59
 
63
60
  def found = false
64
61
  def defaultDir = null
@@ -134,9 +131,8 @@ dependencies {
134
131
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
135
132
 
136
133
  //Flyy sdk dependency
137
- implementation 'com.github.roid-software:flyy-sdk:1.4.55.39'
134
+ implementation 'com.github.roid-software:flyy-sdk:1.4.55.51'
138
135
  // implementation project(path: ':flyy')
139
136
 
140
137
  implementation 'com.google.code.gson:gson:2.8.7'
141
- implementation 'com.android.support:multidex:2.0.1'
142
138
  }
@@ -771,7 +771,7 @@ fun getPreviousLeaderboardWinners(tag: String, callBack: Callback) {
771
771
  }
772
772
 
773
773
  @ReactMethod
774
- fun sendEvent(key: String?, readableMap: ReadableMap?) {
774
+ fun sendEventMultiple(key: String?, readableMap: ReadableMap?) {
775
775
  try {
776
776
  Flyy.sendEvent(key, convertMapToJson(readableMap))
777
777
  } catch (e: JSONException) {
@@ -787,7 +787,7 @@ fun getPreviousLeaderboardWinners(tag: String, callBack: Callback) {
787
787
  }
788
788
 
789
789
  @ReactMethod
790
- fun sendEventWithCallBack(key: String?, readableMap: ReadableMap?,
790
+ fun sendEventWithCallBackMultiple(key: String?, readableMap: ReadableMap?,
791
791
  successCallBack: Callback) {
792
792
  try {
793
793
  Flyy.sendEvent(key, convertMapToJson(readableMap), OnFlyyTaskComplete {
@@ -823,7 +823,7 @@ fun getPreviousLeaderboardWinners(tag: String, callBack: Callback) {
823
823
 
824
824
  @ReactMethod
825
825
  fun hideSCPopupDetails(hideScDate: Boolean,hideScRefNum: Boolean) {
826
- Flyy.hideSCPopupDetails(hideScDate,hideScRefNum);
826
+ Flyy.hideSCPopupDetails(hideScDate,hideScRefNum);
827
827
  }
828
828
 
829
829
  @ReactMethod
@@ -831,6 +831,35 @@ fun getPreviousLeaderboardWinners(tag: String, callBack: Callback) {
831
831
  Flyy.setGiftCardRedeemText(hintTextName,hintTextEmail,receiverName,receiverEmail);
832
832
  }
833
833
 
834
+ @ReactMethod
835
+ fun setCustomQuizPageEnabled(showCustomQuizPage: Boolean) {
836
+ Flyy.setCustomQuizPageEnabled(showCustomQuizPage);
837
+ }
838
+
839
+ @ReactMethod
840
+ fun openInviteAndEarnQR(offerId: Int) {
841
+ FlyyRouteActivity.OFFER_ID = offerId
842
+ openFlyyRouteActivity(FlyyRouteActivity.FLYY_INVITE_AND_EARN_QR, null)
843
+ }
844
+
845
+ // set custom colors and text for Poll, Survey, Trivia and Custom Quiz
846
+
847
+ @ReactMethod
848
+ fun setPSTQConfig(
849
+ logoUrl: String,
850
+ hideLogo: Boolean,
851
+ thankYouTitle: String,
852
+ thankYouDescription: String,
853
+ primaryTextColor: String,
854
+ buttonBgColor: String,
855
+ buttonBgSecondaryColor: String,
856
+ buttonTextColor: String,
857
+ seekbarColor: String,
858
+ descriptionColor: String
859
+ ) {
860
+ Flyy.setPSTQConfig(logoUrl, hideLogo, thankYouTitle, thankYouDescription, primaryTextColor, buttonBgColor, buttonBgSecondaryColor, buttonTextColor, seekbarColor, descriptionColor)
861
+ }
862
+
834
863
  @Throws(JSONException::class)
835
864
  private fun convertMapToJson(readableMap: ReadableMap?): JSONObject? {
836
865
  val `object` = JSONObject()
@@ -926,4 +955,4 @@ fun getPreviousLeaderboardWinners(tag: String, callBack: Callback) {
926
955
  constants[PRODUCTION] = Flyy.PRODUCTION
927
956
  return constants
928
957
  }
929
- }
958
+ }
@@ -34,6 +34,7 @@ public class FlyyRouteActivity extends AppCompatActivity {
34
34
  public static final String FLYY_OPEN_LEADERBOARD_HISTORY = "flyy_open_leaderboard_history";
35
35
  public static final String FLYY_OPEN_TOURNAMENT_LIST = "flyy_open_tournament_list";
36
36
  public static final String FLYY_OPEN_TOURNAMENT_HISTORY = "flyy_open_tournament_history";
37
+ public static final String FLYY_INVITE_AND_EARN_QR = "flyy_invite_and_earn_qr";
37
38
 
38
39
  @Override
39
40
  protected void onCreate(@Nullable Bundle savedInstanceState) {
@@ -111,6 +112,9 @@ public class FlyyRouteActivity extends AppCompatActivity {
111
112
  case FLYY_OPEN_TOURNAMENT_HISTORY:
112
113
  Flyy.navigateToTournamentHistoryActivity(this,null);
113
114
  break;
115
+ case FLYY_INVITE_AND_EARN_QR:
116
+ Flyy.navigateToInviteAndEarnQRActivity(this,OFFER_ID);
117
+ break;
114
118
  default:
115
119
  throw new IllegalStateException("Unexpected value: " + activityToOpen);
116
120
  }
@@ -1034,7 +1034,7 @@ RCT_EXPORT_METHOD(openFlyyInviteDetailsPage: (NSInteger *)offerId)
1034
1034
 
1035
1035
  dispatch_async(dispatch_get_main_queue(), ^(){
1036
1036
 
1037
- [self->flyy openInviteDetailsPageWithOfferId:*offerId];
1037
+ [self->flyy openInviteDetailsPageWithOfferId:offerId];
1038
1038
  });
1039
1039
  });
1040
1040
  }
@@ -1213,6 +1213,41 @@ RCT_EXPORT_METHOD(getAppData:(RCTPromiseResolveBlock)resolve
1213
1213
  }
1214
1214
  }
1215
1215
 
1216
+ RCT_EXPORT_METHOD(setCustomQuizPageEnabled: (BOOL *)showCustomQuizPage)
1217
+ {
1218
+ //Instance of flyy class
1219
+ flyy = [Flyy sharedFlyyInstance];
1220
+
1221
+ [flyy setCustomQuizPageEnabledWithGetValue:showCustomQuizPage];
1222
+ }
1223
+
1224
+ RCT_EXPORT_METHOD(setPSTQConfig: (NSString *)logoUrl :(BOOL *)hideLogo :(NSString *)thankYouTitle
1225
+ :(NSString *)thankYouDescription :(NSString *)primaryTextColor :(NSString *)buttonBgColor
1226
+ :(NSString *)buttonBgSecondaryColor :(NSString *)buttonTextColor :(NSString *)seekbarColor
1227
+ :(NSString *)descriptionColor)
1228
+ {
1229
+ flyy = [Flyy sharedFlyyInstance];
1230
+
1231
+ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
1232
+
1233
+ dispatch_async(dispatch_get_main_queue(), ^(){
1234
+ NSString *hideLogoValue;
1235
+ if (hideLogo)
1236
+ {
1237
+ hideLogoValue = @"yes";
1238
+ }
1239
+ else
1240
+ {
1241
+ hideLogoValue = @"no";
1242
+ }
1243
+ [self-> flyy setPSTQConfigWithLogoUrl:logoUrl hideLogo:hideLogoValue thankYouTitle:thankYouTitle thankYouDescription:thankYouDescription
1244
+ primaryTextColor:primaryTextColor buttonBgColor:buttonBgColor buttonBgSecondaryColor:buttonBgSecondaryColor
1245
+ buttonTextColor: buttonTextColor seekbarColor:seekbarColor descriptionColor:descriptionColor];
1246
+ });
1247
+ });
1248
+ }
1249
+
1250
+
1216
1251
  //overriden method to expose all the constants
1217
1252
  - (NSDictionary *)constantsToExport
1218
1253
  {
@@ -6,28 +6,25 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireWildcard(require("react"));
8
8
  var _reactNative = require("react-native");
9
+ var _jsxRuntime = require("react/jsx-runtime");
9
10
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
11
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
12
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
13
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } // @ts-nocheck
12
+ // @ts-nocheck
13
+
14
14
  const {
15
15
  Flyy
16
16
  } = _reactNative.NativeModules;
17
17
  class FlyyCheckinComponent extends _react.Component {
18
- constructor(...args) {
19
- super(...args);
20
- _defineProperty(this, "state", {
21
- mileStoneData: [],
22
- checkinOffer: [],
23
- listItems: [],
24
- persons: [1, 2, 3, 4, 5],
25
- partnerId: "",
26
- userId: "",
27
- appData: "",
28
- environment: 0
29
- });
30
- }
18
+ state = {
19
+ mileStoneData: [],
20
+ checkinOffer: [],
21
+ listItems: [],
22
+ persons: [1, 2, 3, 4, 5],
23
+ partnerId: "",
24
+ userId: "",
25
+ appData: "",
26
+ environment: 0
27
+ };
31
28
  async componentDidMount() {
32
29
  try {
33
30
  const data = await Flyy.getUserData();
@@ -113,35 +110,36 @@ class FlyyCheckinComponent extends _react.Component {
113
110
  }
114
111
  }
115
112
  render() {
116
- var _this$props$style$che3, _this$props$style3, _this$props$style$fon, _this$props$style4, _this$state$checkinOf, _this$props$style$che4, _this$props$style5, _this$props$style$fon2, _this$props$style6, _this$props$style$che5, _this$props$style7;
117
113
  const Divider = ({
118
114
  color = "black",
119
115
  index
120
116
  }) => {
121
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
117
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
122
118
  style: {
123
119
  flexDirection: 'row'
124
- }
125
- }, _react.default.Children.toArray(this.state.persons.map(() => {
126
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
127
- style: {
128
- flexDirection: 'row'
129
- }
130
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
131
- style: {
132
- height: 1,
133
- width: 2,
134
- backgroundColor: color,
135
- borderRadius: 2
136
- }
137
- }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
138
- style: {
139
- width: 1,
140
- backgroundColor: "white",
141
- borderRadius: 2
142
- }
143
- }));
144
- })));
120
+ },
121
+ children: _react.default.Children.toArray(this.state.persons.map(() => {
122
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
123
+ style: {
124
+ flexDirection: 'row'
125
+ },
126
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
127
+ style: {
128
+ height: 1,
129
+ width: 2,
130
+ backgroundColor: color,
131
+ borderRadius: 2
132
+ }
133
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
134
+ style: {
135
+ width: 1,
136
+ backgroundColor: "white",
137
+ borderRadius: 2
138
+ }
139
+ })]
140
+ });
141
+ }))
142
+ });
145
143
  };
146
144
  const getItemCount = () => this.state.listItems.length;
147
145
  const getItem = (data, index) => ({
@@ -154,170 +152,183 @@ class FlyyCheckinComponent extends _react.Component {
154
152
  title,
155
153
  index
156
154
  }) => {
157
- var _this$props$style$che, _this$props$style, _this$props$style$che2, _this$props$style2;
158
155
  const day = index + 1;
159
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
156
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
160
157
  style: {
161
158
  justifyContent: "center",
162
159
  alignItems: 'center',
163
160
  alignContent: 'center'
164
- }
165
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
166
- style: {
167
- flexDirection: 'row',
168
- height: 35,
169
- justifyContent: 'center',
170
- alignItems: 'center'
171
- }
172
- }, title.isCheckedIn ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
173
- style: {
174
- height: 1,
175
- width: 15,
176
- alignSelf: "center",
177
- backgroundColor: index == 0 ? "white" : "black"
178
- }
179
- }) : /*#__PURE__*/_react.default.createElement(Divider, {
180
- color: index == 0 ? "white" : "black",
181
- index: index
182
- }), title.isRewardDay ? title.isCheckedIn ? /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
183
- source: require('./assets/images/reward_flyy.png'),
184
- style: {
185
- height: 20,
186
- width: 15
187
- }
188
- }) : /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
189
- source: {
190
- uri: this.state.checkinOffer["currency_icon_url"]
191
161
  },
162
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
163
+ style: {
164
+ flexDirection: 'row',
165
+ height: 35,
166
+ justifyContent: 'center',
167
+ alignItems: 'center'
168
+ },
169
+ children: [title.isCheckedIn ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
170
+ style: {
171
+ height: 1,
172
+ width: 15,
173
+ alignSelf: "center",
174
+ backgroundColor: index == 0 ? "white" : "black"
175
+ }
176
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, {
177
+ color: index == 0 ? "white" : "black",
178
+ index: index
179
+ }), title.isRewardDay ? title.isCheckedIn ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
180
+ source: require('./assets/images/reward_flyy.png'),
181
+ style: {
182
+ height: 20,
183
+ width: 15
184
+ }
185
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
186
+ source: {
187
+ uri: this.state.checkinOffer["currency_icon_url"]
188
+ },
189
+ style: {
190
+ height: 20,
191
+ width: 20
192
+ }
193
+ }) : title.isCheckedIn ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
194
+ style: {
195
+ height: 17,
196
+ width: 17,
197
+ backgroundColor: "black",
198
+ borderRadius: 15,
199
+ justifyContent: 'center',
200
+ alignItems: 'center'
201
+ },
202
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
203
+ style: {
204
+ color: "white",
205
+ fontSize: 10
206
+ },
207
+ children: "\u2713"
208
+ })
209
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
210
+ source: require('./assets/images/radio.png'),
211
+ style: {
212
+ height: 20,
213
+ width: 20
214
+ }
215
+ }), index != this.state.listItems.length - 1 ? this.state.listItems[index + 1].isCheckedIn ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
216
+ style: {
217
+ height: 1,
218
+ width: 15,
219
+ alignSelf: "center",
220
+ backgroundColor: index == this.state.listItems.length - 1 ? "white" : "black"
221
+ }
222
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(Divider, {
223
+ color: index == this.state.listItems.length - 1 ? "white" : "black",
224
+ index: index
225
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
226
+ style: {
227
+ width: 15
228
+ }
229
+ })]
230
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
231
+ style: {
232
+ textAlign: 'center',
233
+ color: title.isRewardDay ? this.props.style?.checkInEarnColor ?? "black" : this.props.style?.checkInDaysColor ?? "black"
234
+ },
235
+ children: title.isRewardDay ? title.isCheckedIn ? "Won" : "Earn" : title.isCheckedIn ? "Day " + day : "Day " + day
236
+ })]
237
+ });
238
+ };
239
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
240
+ style: styles.main,
241
+ onPress: () => {
242
+ Flyy.openFlyyCheckinPage();
243
+ },
244
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
192
245
  style: {
193
- height: 20,
194
- width: 20
195
- }
196
- }) : title.isCheckedIn ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
197
- style: {
198
- height: 17,
199
- width: 17,
200
- backgroundColor: "black",
201
- borderRadius: 15,
202
- justifyContent: 'center',
203
- alignItems: 'center'
246
+ height: 10
204
247
  }
205
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
248
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
206
249
  style: {
207
- color: "white",
208
- fontSize: 10
209
- }
210
- }, "\u2713")) : /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
211
- source: require('./assets/images/radio.png'),
250
+ fontSize: 20,
251
+ color: this.props.style?.checkInTitleColor ?? "black",
252
+ fontFamily: this.props.style?.fontFamily ?? "Montserrat-Regular"
253
+ },
254
+ children: this.state.checkinOffer["offer_type_title"] ?? "N/A"
255
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
212
256
  style: {
213
- height: 20,
214
- width: 20
257
+ height: 10
215
258
  }
216
- }), index != this.state.listItems.length - 1 ? this.state.listItems[index + 1].isCheckedIn ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
259
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
217
260
  style: {
218
- height: 1,
219
- width: 15,
220
- alignSelf: "center",
221
- backgroundColor: index == this.state.listItems.length - 1 ? "white" : "black"
222
- }
223
- }) : /*#__PURE__*/_react.default.createElement(Divider, {
224
- color: index == this.state.listItems.length - 1 ? "white" : "black",
225
- index: index
226
- }) : /*#__PURE__*/_react.default.createElement(_reactNative.View, {
261
+ flexDirection: 'row',
262
+ width: 250,
263
+ justifyContent: 'center'
264
+ },
265
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
266
+ numberOfLines: 1,
267
+ style: {
268
+ fontSize: 18,
269
+ color: this.props.style?.checkInDescriptionColor ?? "grey",
270
+ fontFamily: this.props.style?.fontFamily ?? "Montserrat-Regular",
271
+ textAlign: "center"
272
+ },
273
+ children: this.state.checkinOffer["description"] != null ? this.state.checkinOffer["description"].replace(/(<([^>]+)>)/ig, '') : "N/A"
274
+ })
275
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
227
276
  style: {
228
- width: 15
277
+ height: 10
229
278
  }
230
- })), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
279
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
280
+ style: styles.listContainer,
281
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
282
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.VirtualizedList, {
283
+ data: this.state.listItems,
284
+ style: {
285
+ alignSelf: "center"
286
+ },
287
+ initialNumToRender: 4,
288
+ horizontal: true,
289
+ renderItem: ({
290
+ item,
291
+ index
292
+ }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(Item, {
293
+ title: item,
294
+ index: index
295
+ }),
296
+ getItemCount: getItemCount,
297
+ getItem: getItem
298
+ })
299
+ })
300
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
231
301
  style: {
232
- textAlign: 'center',
233
- color: title.isRewardDay ? (_this$props$style$che = (_this$props$style = this.props.style) === null || _this$props$style === void 0 ? void 0 : _this$props$style.checkInEarnColor) !== null && _this$props$style$che !== void 0 ? _this$props$style$che : "black" : (_this$props$style$che2 = (_this$props$style2 = this.props.style) === null || _this$props$style2 === void 0 ? void 0 : _this$props$style2.checkInDaysColor) !== null && _this$props$style$che2 !== void 0 ? _this$props$style$che2 : "black"
302
+ height: 10
234
303
  }
235
- }, title.isRewardDay ? title.isCheckedIn ? "Won" : "Earn" : title.isCheckedIn ? "Day " + day : "Day " + day));
236
- };
237
- return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
238
- style: styles.main,
239
- onPress: () => {
240
- Flyy.openFlyyCheckinPage();
241
- }
242
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
243
- style: {
244
- height: 10
245
- }
246
- }), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
247
- style: {
248
- fontSize: 20,
249
- color: (_this$props$style$che3 = (_this$props$style3 = this.props.style) === null || _this$props$style3 === void 0 ? void 0 : _this$props$style3.checkInTitleColor) !== null && _this$props$style$che3 !== void 0 ? _this$props$style$che3 : "black",
250
- fontFamily: (_this$props$style$fon = (_this$props$style4 = this.props.style) === null || _this$props$style4 === void 0 ? void 0 : _this$props$style4.fontFamily) !== null && _this$props$style$fon !== void 0 ? _this$props$style$fon : "Montserrat-Regular"
251
- }
252
- }, (_this$state$checkinOf = this.state.checkinOffer["offer_type_title"]) !== null && _this$state$checkinOf !== void 0 ? _this$state$checkinOf : "N/A"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
253
- style: {
254
- height: 10
255
- }
256
- }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
257
- style: {
258
- flexDirection: 'row',
259
- width: 250,
260
- justifyContent: 'center'
261
- }
262
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
263
- numberOfLines: 1,
264
- style: {
265
- fontSize: 18,
266
- color: (_this$props$style$che4 = (_this$props$style5 = this.props.style) === null || _this$props$style5 === void 0 ? void 0 : _this$props$style5.checkInDescriptionColor) !== null && _this$props$style$che4 !== void 0 ? _this$props$style$che4 : "grey",
267
- fontFamily: (_this$props$style$fon2 = (_this$props$style6 = this.props.style) === null || _this$props$style6 === void 0 ? void 0 : _this$props$style6.fontFamily) !== null && _this$props$style$fon2 !== void 0 ? _this$props$style$fon2 : "Montserrat-Regular",
268
- textAlign: "center"
269
- }
270
- }, this.state.checkinOffer["description"] != null ? this.state.checkinOffer["description"].replace(/(<([^>]+)>)/ig, '') : "N/A")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
271
- style: {
272
- height: 10
273
- }
274
- }), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
275
- style: styles.listContainer
276
- }, /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.VirtualizedList, {
277
- data: this.state.listItems,
278
- style: {
279
- alignSelf: "center"
280
- },
281
- initialNumToRender: 4,
282
- horizontal: true,
283
- renderItem: ({
284
- item,
285
- index
286
- }) => /*#__PURE__*/_react.default.createElement(Item, {
287
- title: item,
288
- index: index
289
- }),
290
- getItemCount: getItemCount,
291
- getItem: getItem
292
- }))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
293
- style: {
294
- height: 10
295
- }
296
- }), /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
297
- style: styles.button,
298
- onPress: async () => {
299
- const eventId = this.state.checkinOffer["event_id"];
300
- const url = this.state.checkinOffer["deeplink"];
301
- if (eventId != null) {
302
- if (url != "") {
303
- const supported = await _reactNative.Linking.canOpenURL(url);
304
- if (supported) {
305
- await _reactNative.Linking.openURL(url);
304
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
305
+ style: styles.button,
306
+ onPress: async () => {
307
+ const eventId = this.state.checkinOffer["event_id"];
308
+ const url = this.state.checkinOffer["deeplink"];
309
+ if (eventId != null) {
310
+ if (url != "") {
311
+ const supported = await _reactNative.Linking.canOpenURL(url);
312
+ if (supported) {
313
+ await _reactNative.Linking.openURL(url);
314
+ }
306
315
  }
316
+ } else {
317
+ this.checkInApi();
307
318
  }
308
- } else {
309
- this.checkInApi();
310
- }
311
- }
312
- }, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
313
- style: {
314
- fontSize: 20,
315
- color: (_this$props$style$che5 = (_this$props$style7 = this.props.style) === null || _this$props$style7 === void 0 ? void 0 : _this$props$style7.checkInBtnTextColor) !== null && _this$props$style$che5 !== void 0 ? _this$props$style$che5 : "white",
316
- paddingLeft: 10,
317
- paddingRight: 10,
318
- fontFamily: "Montserrat-Regular"
319
- }
320
- }, this.state.checkinOffer["checked_in"] ? "Checked In" : this.state.checkinOffer["button_text"] != "" ? this.state.checkinOffer["button_text"] : "Check In")));
319
+ },
320
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
321
+ style: {
322
+ fontSize: 20,
323
+ color: this.props.style?.checkInBtnTextColor ?? "white",
324
+ paddingLeft: 10,
325
+ paddingRight: 10,
326
+ fontFamily: "Montserrat-Regular"
327
+ },
328
+ children: this.state.checkinOffer["checked_in"] ? "Checked In" : this.state.checkinOffer["button_text"] != "" ? this.state.checkinOffer["button_text"] : "Check In"
329
+ })
330
+ })]
331
+ });
321
332
  }
322
333
  }
323
334
  const styles = _reactNative.StyleSheet.create({