related-ui-components 1.6.1 → 1.6.3
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.
- package/lib/commonjs/app.js +114 -253
- package/lib/commonjs/app.js.map +1 -1
- package/lib/commonjs/components/ScratchCard/ScratchCard.js +53 -51
- package/lib/commonjs/components/ScratchCard/ScratchCard.js.map +1 -1
- package/lib/module/app.js +120 -257
- package/lib/module/app.js.map +1 -1
- package/lib/module/components/ScratchCard/ScratchCard.js +54 -52
- package/lib/module/components/ScratchCard/ScratchCard.js.map +1 -1
- package/lib/typescript/commonjs/app.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/ScratchCard/ScratchCard.d.ts.map +1 -1
- package/lib/typescript/module/app.d.ts.map +1 -1
- package/lib/typescript/module/components/ScratchCard/ScratchCard.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/app.tsx +99 -198
- package/src/components/ScratchCard/ScratchCard.tsx +96 -82
package/lib/module/app.js
CHANGED
|
@@ -1,286 +1,149 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, {
|
|
4
|
-
import { StyleSheet, Text
|
|
5
|
-
|
|
3
|
+
import React, { useState } from "react";
|
|
4
|
+
import { View, StyleSheet, Text, TouchableOpacity, Alert, Modal // Import Modal
|
|
5
|
+
} from "react-native";
|
|
6
6
|
import { RelatedProvider, useTheme } from "./theme/index.js";
|
|
7
|
-
import { ScratchCard,
|
|
7
|
+
import { ScratchCard,
|
|
8
|
+
// Your component
|
|
9
|
+
ScratchCardContent } from "./components/index.js";
|
|
8
10
|
import { SafeAreaView } from "react-native-safe-area-context";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
+
// ... other imports
|
|
12
|
+
import { GestureHandlerRootView } from "react-native-gesture-handler"; // Ensure import
|
|
11
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
14
|
export default function App() {
|
|
13
15
|
const {
|
|
14
16
|
theme
|
|
15
17
|
} = useTheme();
|
|
16
|
-
|
|
17
|
-
const [mode, setMode] = useState("flight");
|
|
18
|
+
// ... other state and constants
|
|
18
19
|
|
|
19
|
-
//
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
const redemptionOptions = redemptionOption.map(item => ({
|
|
101
|
-
...item,
|
|
102
|
-
text: "Online shopping"
|
|
103
|
-
}));
|
|
104
|
-
const debounceTimerRef = useRef(null);
|
|
105
|
-
const rewardsData = [{
|
|
106
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
107
|
-
name: "water-outline",
|
|
108
|
-
size: 24,
|
|
109
|
-
color: theme.helper
|
|
110
|
-
}),
|
|
111
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
112
|
-
name: "water",
|
|
113
|
-
size: 24,
|
|
114
|
-
color: theme.primary
|
|
115
|
-
}),
|
|
116
|
-
title: "Aqua Guardian",
|
|
117
|
-
description: "Maintain water usage below the community average for a month.",
|
|
118
|
-
isActive: false,
|
|
119
|
-
status: "0/1",
|
|
120
|
-
statusBackgroundColor: theme.disabled,
|
|
121
|
-
statusTextColor: theme.text
|
|
122
|
-
}, {
|
|
123
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
124
|
-
name: "build-outline",
|
|
125
|
-
size: 24,
|
|
126
|
-
color: theme.helper
|
|
127
|
-
}),
|
|
128
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
129
|
-
name: "build",
|
|
130
|
-
size: 24,
|
|
131
|
-
color: theme.secondary
|
|
132
|
-
}),
|
|
133
|
-
title: "Leak Detective",
|
|
134
|
-
description: "Successfully report and fix a water leak on your property.",
|
|
135
|
-
isActive: true,
|
|
136
|
-
status: "1/1",
|
|
137
|
-
statusBackgroundColor: theme.primary,
|
|
138
|
-
statusTextColor: theme.secondary
|
|
139
|
-
}, {
|
|
140
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
141
|
-
name: "leaf-outline",
|
|
142
|
-
size: 24,
|
|
143
|
-
color: theme.helper
|
|
144
|
-
}),
|
|
145
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
146
|
-
name: "leaf",
|
|
147
|
-
size: 24,
|
|
148
|
-
color: theme.primary
|
|
149
|
-
}),
|
|
150
|
-
title: "Eco-Warrior",
|
|
151
|
-
description: "Implement a rainwater harvesting system or greywater recycling.",
|
|
152
|
-
isActive: false,
|
|
153
|
-
status: "0/1",
|
|
154
|
-
statusBackgroundColor: theme.disabled,
|
|
155
|
-
statusTextColor: theme.text
|
|
156
|
-
}, {
|
|
157
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
158
|
-
name: "leaf-outline",
|
|
159
|
-
size: 24,
|
|
160
|
-
color: theme.helper
|
|
161
|
-
}),
|
|
162
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
163
|
-
name: "leaf",
|
|
164
|
-
size: 24,
|
|
165
|
-
color: theme.primary
|
|
166
|
-
}),
|
|
167
|
-
title: "Eco-Warrior",
|
|
168
|
-
description: "Implement a rainwater harvesting system or greywater recycling.",
|
|
169
|
-
isActive: false,
|
|
170
|
-
status: "0/1",
|
|
171
|
-
statusBackgroundColor: theme.disabled,
|
|
172
|
-
statusTextColor: theme.text
|
|
173
|
-
}, {
|
|
174
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
175
|
-
name: "leaf-outline",
|
|
176
|
-
size: 24,
|
|
177
|
-
color: theme.helper
|
|
178
|
-
}),
|
|
179
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
180
|
-
name: "leaf",
|
|
181
|
-
size: 24,
|
|
182
|
-
color: theme.primary
|
|
183
|
-
}),
|
|
184
|
-
title: "Eco-Warrior",
|
|
185
|
-
description: "Implement a rainwater harvesting system or greywater recycling.",
|
|
186
|
-
isActive: false,
|
|
187
|
-
status: "0/1",
|
|
188
|
-
statusBackgroundColor: theme.disabled,
|
|
189
|
-
statusTextColor: theme.text
|
|
190
|
-
}, {
|
|
191
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
192
|
-
name: "leaf-outline",
|
|
193
|
-
size: 24,
|
|
194
|
-
color: theme.helper
|
|
195
|
-
}),
|
|
196
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
197
|
-
name: "leaf",
|
|
198
|
-
size: 24,
|
|
199
|
-
color: theme.primary
|
|
200
|
-
}),
|
|
201
|
-
title: "Eco-Warrior",
|
|
202
|
-
description: "Implement a rainwater harvesting system or greywater recycling.",
|
|
203
|
-
isActive: false,
|
|
204
|
-
status: "0/1",
|
|
205
|
-
statusBackgroundColor: theme.disabled,
|
|
206
|
-
statusTextColor: theme.text
|
|
207
|
-
}, {
|
|
208
|
-
icon: /*#__PURE__*/_jsx(Ionicons, {
|
|
209
|
-
name: "leaf-outline",
|
|
210
|
-
size: 24,
|
|
211
|
-
color: theme.helper
|
|
212
|
-
}),
|
|
213
|
-
activeIcon: /*#__PURE__*/_jsx(Ionicons, {
|
|
214
|
-
name: "leaf",
|
|
215
|
-
size: 24,
|
|
216
|
-
color: theme.primary
|
|
217
|
-
}),
|
|
218
|
-
title: "Eco-Warrior",
|
|
219
|
-
description: "Implement a rainwater harvesting system or greywater recycling.",
|
|
220
|
-
isActive: false,
|
|
221
|
-
status: "0/1",
|
|
222
|
-
statusBackgroundColor: theme.disabled,
|
|
223
|
-
statusTextColor: theme.text
|
|
224
|
-
}];
|
|
225
|
-
return /*#__PURE__*/_jsx(GestureHandlerRootView, {
|
|
226
|
-
children: /*#__PURE__*/_jsx(RelatedProvider, {
|
|
227
|
-
children: /*#__PURE__*/_jsx(SafeAreaView, {
|
|
228
|
-
style: {
|
|
229
|
-
padding: 10,
|
|
230
|
-
flex: 1,
|
|
231
|
-
backgroundColor: theme.background
|
|
232
|
-
},
|
|
233
|
-
children: /*#__PURE__*/_jsx(ScratchCard, {
|
|
234
|
-
backgroundColor: "#8A2BE2",
|
|
235
|
-
text: "Scratch to reveal your prize!",
|
|
236
|
-
textFontColor: "#FFFFFF",
|
|
237
|
-
textFontSize: 18,
|
|
238
|
-
width: 300,
|
|
239
|
-
height: 150
|
|
240
|
-
// onScratched={() => alert("Congratulations! You won a prize!")}
|
|
241
|
-
,
|
|
242
|
-
children: /*#__PURE__*/_jsxs(ScratchCardContent, {
|
|
243
|
-
style: {
|
|
244
|
-
backgroundColor: "#FFD700"
|
|
245
|
-
},
|
|
246
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
247
|
-
style: {
|
|
248
|
-
fontSize: 24,
|
|
249
|
-
fontWeight: "bold",
|
|
250
|
-
color: "#000"
|
|
251
|
-
},
|
|
252
|
-
children: "50% OFF COUPON"
|
|
253
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
254
|
-
style: {
|
|
255
|
-
marginTop: 8,
|
|
256
|
-
color: "#333"
|
|
257
|
-
},
|
|
258
|
-
children: "Use code: SCRATCH50"
|
|
259
|
-
})]
|
|
260
|
-
})
|
|
20
|
+
// State to control modal visibility
|
|
21
|
+
const [isScratchModalVisible, setScratchModalVisible] = useState(false); // Example state
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
/*#__PURE__*/
|
|
25
|
+
// Root view for the main app
|
|
26
|
+
_jsx(GestureHandlerRootView, {
|
|
27
|
+
style: {
|
|
28
|
+
flex: 1
|
|
29
|
+
},
|
|
30
|
+
children: /*#__PURE__*/_jsx(RelatedProvider, {
|
|
31
|
+
children: /*#__PURE__*/_jsxs(SafeAreaView, {
|
|
32
|
+
style: {
|
|
33
|
+
flex: 1,
|
|
34
|
+
padding: 10,
|
|
35
|
+
backgroundColor: theme.background
|
|
36
|
+
},
|
|
37
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
38
|
+
onPress: () => setScratchModalVisible(true),
|
|
39
|
+
style: styles.testButton,
|
|
40
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
41
|
+
style: styles.buttonText,
|
|
42
|
+
children: "Show Scratch Card Modal"
|
|
43
|
+
})
|
|
44
|
+
}), /*#__PURE__*/_jsx(Modal, {
|
|
45
|
+
visible: isScratchModalVisible,
|
|
46
|
+
onRequestClose: () => setScratchModalVisible(false) // Allow closing
|
|
47
|
+
,
|
|
48
|
+
transparent: true // Example: make it transparent
|
|
49
|
+
,
|
|
50
|
+
animationType: "slide" // Example animation
|
|
51
|
+
,
|
|
52
|
+
children: /*#__PURE__*/_jsx(GestureHandlerRootView, {
|
|
53
|
+
style: styles.modalRootView,
|
|
54
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
55
|
+
style: styles.modalOverlay,
|
|
56
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
57
|
+
style: styles.modalContentContainer,
|
|
58
|
+
children: [/*#__PURE__*/_jsx(ScratchCard, {
|
|
59
|
+
backgroundColor: "#8A2BE2",
|
|
60
|
+
text: "Scratch to reveal your prize!",
|
|
61
|
+
textFontColor: "#FFFFFF",
|
|
62
|
+
textFontSize: 18,
|
|
63
|
+
width: 300,
|
|
64
|
+
height: 150,
|
|
65
|
+
onScratched: () => {
|
|
66
|
+
Alert.alert("Congratulations!", "You won a prize!");
|
|
67
|
+
// Optionally close modal after scratching
|
|
68
|
+
// setTimeout(() => setScratchModalVisible(false), 500);
|
|
69
|
+
},
|
|
70
|
+
children: /*#__PURE__*/_jsxs(ScratchCardContent, {
|
|
71
|
+
style: {
|
|
72
|
+
backgroundColor: "#FFD700"
|
|
73
|
+
},
|
|
74
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
75
|
+
style: {
|
|
76
|
+
fontSize: 24,
|
|
77
|
+
fontWeight: "bold",
|
|
78
|
+
color: "#000"
|
|
79
|
+
},
|
|
80
|
+
children: "50% OFF COUPON"
|
|
81
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
82
|
+
style: {
|
|
83
|
+
marginTop: 8,
|
|
84
|
+
color: "#333"
|
|
85
|
+
},
|
|
86
|
+
children: "Use code: SCRATCH50"
|
|
87
|
+
})]
|
|
88
|
+
})
|
|
89
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
90
|
+
onPress: () => setScratchModalVisible(false),
|
|
91
|
+
style: styles.closeButton,
|
|
92
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
93
|
+
style: styles.buttonText,
|
|
94
|
+
children: "Close"
|
|
95
|
+
})
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
})
|
|
100
|
+
})]
|
|
261
101
|
})
|
|
262
102
|
})
|
|
263
103
|
})
|
|
264
|
-
|
|
104
|
+
);
|
|
265
105
|
}
|
|
266
106
|
const styles = StyleSheet.create({
|
|
267
|
-
|
|
268
|
-
flex: 1,
|
|
269
|
-
backgroundColor: "black",
|
|
270
|
-
padding: 10
|
|
271
|
-
},
|
|
107
|
+
// ... your existing styles
|
|
272
108
|
testButton: {
|
|
273
109
|
backgroundColor: "#4a90e2",
|
|
274
110
|
paddingVertical: 12,
|
|
275
111
|
paddingHorizontal: 30,
|
|
276
112
|
borderRadius: 8,
|
|
277
|
-
marginBottom: 20
|
|
113
|
+
marginBottom: 20,
|
|
114
|
+
alignSelf: "center"
|
|
278
115
|
},
|
|
279
116
|
buttonText: {
|
|
280
117
|
color: "#FFFFFF",
|
|
281
118
|
fontSize: 16,
|
|
282
119
|
fontWeight: "bold",
|
|
283
120
|
textAlign: "center"
|
|
121
|
+
},
|
|
122
|
+
// Styles for the Modal
|
|
123
|
+
modalRootView: {
|
|
124
|
+
flex: 1 // Important for the root view to take up space
|
|
125
|
+
},
|
|
126
|
+
modalOverlay: {
|
|
127
|
+
flex: 1,
|
|
128
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
129
|
+
// Semi-transparent background
|
|
130
|
+
justifyContent: "center",
|
|
131
|
+
// Center content vertically
|
|
132
|
+
alignItems: "center" // Center content horizontally
|
|
133
|
+
},
|
|
134
|
+
modalContentContainer: {
|
|
135
|
+
// Optional: Add padding or background to the content area if needed
|
|
136
|
+
// backgroundColor: 'white',
|
|
137
|
+
// padding: 20,
|
|
138
|
+
// borderRadius: 10,
|
|
139
|
+
alignItems: "center" // Center items like the close button
|
|
140
|
+
},
|
|
141
|
+
closeButton: {
|
|
142
|
+
marginTop: 20,
|
|
143
|
+
backgroundColor: "#d9534f",
|
|
144
|
+
paddingVertical: 10,
|
|
145
|
+
paddingHorizontal: 25,
|
|
146
|
+
borderRadius: 8
|
|
284
147
|
}
|
|
285
148
|
});
|
|
286
149
|
//# sourceMappingURL=app.js.map
|
package/lib/module/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","
|
|
1
|
+
{"version":3,"names":["React","useState","View","StyleSheet","Text","TouchableOpacity","Alert","Modal","RelatedProvider","useTheme","ScratchCard","ScratchCardContent","SafeAreaView","GestureHandlerRootView","jsx","_jsx","jsxs","_jsxs","App","theme","isScratchModalVisible","setScratchModalVisible","style","flex","children","padding","backgroundColor","background","onPress","styles","testButton","buttonText","visible","onRequestClose","transparent","animationType","modalRootView","modalOverlay","modalContentContainer","text","textFontColor","textFontSize","width","height","onScratched","alert","fontSize","fontWeight","color","marginTop","closeButton","create","paddingVertical","paddingHorizontal","borderRadius","marginBottom","alignSelf","textAlign","justifyContent","alignItems"],"sourceRoot":"..\\..\\src","sources":["app.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAYC,QAAQ,QAAQ,OAAO;AAC/C,SACEC,IAAI,EACJC,UAAU,EACVC,IAAI,EACJC,gBAAgB,EAGhBC,KAAK,EACLC,KAAK,CAAE;AAAA,OACF,cAAc;AAErB,SAASC,eAAe,EAAEC,QAAQ,QAAQ,kBAAS;AACnD,SAKEC,WAAW;AAAE;AACbC,kBAAkB,QAEb,uBAAc;AACrB,SAASC,YAAY,QAAQ,gCAAgC;AAC7D;AACA,SAASC,sBAAsB,QAAQ,8BAA8B,CAAC,CAAC;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEvE,eAAe,SAASC,GAAGA,CAAA,EAAG;EAC5B,MAAM;IAAEC;EAAM,CAAC,GAAGV,QAAQ,CAAC,CAAC;EAC5B;;EAEA;EACA,MAAM,CAACW,qBAAqB,EAAEC,sBAAsB,CAAC,GAAGpB,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;;EAEzE;IAAA;IACE;IACAc,IAAA,CAACF,sBAAsB;MAACS,KAAK,EAAE;QAAEC,IAAI,EAAE;MAAE,CAAE;MAAAC,QAAA,eACzC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C;EACDc,YAAY,EAAE;IACZd,IAAI,EAAE,CAAC;IACPG,eAAe,EAAE,oBAAoB;IAAE;IACvCgC,cAAc,EAAE,QAAQ;IAAE;IAC1BC,UAAU,EAAE,QAAQ,CAAE;EACxB,CAAC;EACDrB,qBAAqB,EAAE;IACrB;IACA;IACA;IACA;IACAqB,UAAU,EAAE,QAAQ,CAAE;EACxB,CAAC;EACDT,WAAW,EAAE;IACXD,SAAS,EAAE,EAAE;IACbvB,eAAe,EAAE,SAAS;IAC1B0B,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE,EAAE;IACrBC,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -13,7 +13,7 @@ import { View, StyleSheet
|
|
|
13
13
|
} from "react-native";
|
|
14
14
|
// Import runOnJS and useSharedValue
|
|
15
15
|
import { runOnJS, useSharedValue } from "react-native-reanimated";
|
|
16
|
-
import { Gesture, GestureDetector } from "react-native-gesture-handler";
|
|
16
|
+
import { Gesture, GestureDetector, GestureHandlerRootView } from "react-native-gesture-handler";
|
|
17
17
|
|
|
18
18
|
// Ignore specific warning if it appears, related to path mutation - use cautiously
|
|
19
19
|
// LogBox.ignoreLogs(['Skia: SkPath.Make()']);
|
|
@@ -114,62 +114,64 @@ const ScratchCard = ({
|
|
|
114
114
|
return null;
|
|
115
115
|
}, [loadedFont, text, areaWidth, areaHeight]);
|
|
116
116
|
const canRenderCanvas = isLayoutReady && areaWidth > 0 && areaHeight > 0;
|
|
117
|
-
return /*#__PURE__*/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
117
|
+
return /*#__PURE__*/_jsx(GestureHandlerRootView, {
|
|
118
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
119
|
+
onLayout: handleLayout,
|
|
120
|
+
style: [styles.container, style, {
|
|
121
|
+
width,
|
|
122
|
+
height
|
|
123
|
+
}],
|
|
124
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
125
|
+
style: styles.content,
|
|
126
|
+
children: children
|
|
127
|
+
}), !isScratched && canRenderCanvas && /*#__PURE__*/_jsx(GestureDetector, {
|
|
128
|
+
gesture: pan,
|
|
129
|
+
children: /*#__PURE__*/_jsx(Canvas, {
|
|
130
|
+
style: styles.canvas,
|
|
131
|
+
children: /*#__PURE__*/_jsx(Mask, {
|
|
132
|
+
mode: "luminance",
|
|
133
|
+
mask: /*#__PURE__*/_jsxs(Group, {
|
|
134
|
+
children: [/*#__PURE__*/_jsx(Rect, {
|
|
135
|
+
x: 0,
|
|
136
|
+
y: 0,
|
|
137
|
+
width: areaWidth,
|
|
138
|
+
height: areaHeight,
|
|
139
|
+
color: "white"
|
|
140
|
+
}), /*#__PURE__*/_jsx(Path, {
|
|
141
|
+
path: path,
|
|
142
|
+
color: "black",
|
|
143
|
+
style: "stroke",
|
|
144
|
+
strokeJoin: "round",
|
|
145
|
+
strokeCap: "round",
|
|
146
|
+
strokeWidth: brushStrokeWidth
|
|
147
|
+
})]
|
|
148
|
+
}),
|
|
149
|
+
children: loadedImg ? /*#__PURE__*/_jsx(Image, {
|
|
150
|
+
image: loadedImg,
|
|
151
|
+
fit: "cover",
|
|
134
152
|
x: 0,
|
|
135
153
|
y: 0,
|
|
136
154
|
width: areaWidth,
|
|
137
|
-
height: areaHeight
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
width: areaWidth,
|
|
154
|
-
height: areaHeight
|
|
155
|
-
}) : /*#__PURE__*/_jsxs(Group, {
|
|
156
|
-
children: [/*#__PURE__*/_jsx(Rect, {
|
|
157
|
-
x: 0,
|
|
158
|
-
y: 0,
|
|
159
|
-
width: areaWidth,
|
|
160
|
-
height: areaHeight,
|
|
161
|
-
color: backgroundColor
|
|
162
|
-
}), loadedFont && textMetrics && text ? /*#__PURE__*/_jsx(Text, {
|
|
163
|
-
x: textMetrics.x,
|
|
164
|
-
y: textMetrics.y,
|
|
165
|
-
text: text,
|
|
166
|
-
color: textFontColor,
|
|
167
|
-
font: loadedFont
|
|
168
|
-
}) : null]
|
|
155
|
+
height: areaHeight
|
|
156
|
+
}) : /*#__PURE__*/_jsxs(Group, {
|
|
157
|
+
children: [/*#__PURE__*/_jsx(Rect, {
|
|
158
|
+
x: 0,
|
|
159
|
+
y: 0,
|
|
160
|
+
width: areaWidth,
|
|
161
|
+
height: areaHeight,
|
|
162
|
+
color: backgroundColor
|
|
163
|
+
}), loadedFont && textMetrics && text ? /*#__PURE__*/_jsx(Text, {
|
|
164
|
+
x: textMetrics.x,
|
|
165
|
+
y: textMetrics.y,
|
|
166
|
+
text: text,
|
|
167
|
+
color: textFontColor,
|
|
168
|
+
font: loadedFont
|
|
169
|
+
}) : null]
|
|
170
|
+
})
|
|
169
171
|
})
|
|
170
172
|
})
|
|
171
|
-
})
|
|
172
|
-
})
|
|
173
|
+
})]
|
|
174
|
+
})
|
|
173
175
|
});
|
|
174
176
|
};
|
|
175
177
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","useCallback","Canvas","Group","Image","Mask","Path","Rect","Skia","useImage","Text","useFont","notifyChange","View","StyleSheet","runOnJS","useSharedValue","Gesture","GestureDetector","jsx","_jsx","jsxs","_jsxs","ScratchCard","style","children","image","brushStrokeWidth","revealThreshold","width","height","backgroundColor","text","textFont","textFontColor","textFontSize","onScratched","loadedImg","loadedFont","areaWidth","areaHeight","setSize","isScratched","setScratched","isLayoutReady","setLayoutReady","isThresholdReached","path","Make","value","handleLayout","event","newWidth","newHeight","nativeEvent","layout","revealCardOnJS","pan","Pan","averageTouches","maxPointers","onBegin","e","newPath","copy","moveTo","x","y","lineTo","error","console","onChange","bounds","getBounds","scratchedArea","totalArea","textMetrics","useMemo","metrics","measureText","textX","textY","canRenderCanvas","onLayout","styles","container","content","gesture","canvas","mode","mask","color","strokeJoin","strokeCap","strokeWidth","fit","font","create","position","overflow","top","left","zIndex"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/ScratchCard/ScratchCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAEVC,QAAQ,EACRC,SAAS,EACTC,WAAW,CAAE;AAAA,OACR,OAAO;AACd,SACEC,MAAM,EACNC,KAAK,EACLC,KAAK,EACLC,IAAI,EACJC,IAAI,EACJC,IAAI,EACJC,IAAI,EACJC,QAAQ,EACRC,IAAI,EACJC,OAAO,EACPC;AACQ;AACA;AACC;AAAA,OACJ,4BAA4B;AACnC,SAEEC,IAAI,EAEJC;;AAEQ;AAAA,OACH,cAAc;AACrB;AACA,SAASC,OAAO,EAAEC,cAAc,QAAQ,yBAAyB;AACjE,
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","useCallback","Canvas","Group","Image","Mask","Path","Rect","Skia","useImage","Text","useFont","notifyChange","View","StyleSheet","runOnJS","useSharedValue","Gesture","GestureDetector","GestureHandlerRootView","jsx","_jsx","jsxs","_jsxs","ScratchCard","style","children","image","brushStrokeWidth","revealThreshold","width","height","backgroundColor","text","textFont","textFontColor","textFontSize","onScratched","loadedImg","loadedFont","areaWidth","areaHeight","setSize","isScratched","setScratched","isLayoutReady","setLayoutReady","isThresholdReached","path","Make","value","handleLayout","event","newWidth","newHeight","nativeEvent","layout","revealCardOnJS","pan","Pan","averageTouches","maxPointers","onBegin","e","newPath","copy","moveTo","x","y","lineTo","error","console","onChange","bounds","getBounds","scratchedArea","totalArea","textMetrics","useMemo","metrics","measureText","textX","textY","canRenderCanvas","onLayout","styles","container","content","gesture","canvas","mode","mask","color","strokeJoin","strokeCap","strokeWidth","fit","font","create","position","overflow","top","left","zIndex"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/ScratchCard/ScratchCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAEVC,QAAQ,EACRC,SAAS,EACTC,WAAW,CAAE;AAAA,OACR,OAAO;AACd,SACEC,MAAM,EACNC,KAAK,EACLC,KAAK,EACLC,IAAI,EACJC,IAAI,EACJC,IAAI,EACJC,IAAI,EACJC,QAAQ,EACRC,IAAI,EACJC,OAAO,EACPC;AACQ;AACA;AACC;AAAA,OACJ,4BAA4B;AACnC,SAEEC,IAAI,EAEJC;;AAEQ;AAAA,OACH,cAAc;AACrB;AACA,SAASC,OAAO,EAAEC,cAAc,QAAQ,yBAAyB;AACjE,SACEC,OAAO,EACPC,eAAe,EACfC,sBAAsB,QACjB,8BAA8B;;AAErC;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAkBA,MAAMC,WAAuC,GAAGA,CAAC;EAC/CC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,gBAAgB,GAAG,EAAE;EACrBC,eAAe,GAAG,GAAG;EACrBC,KAAK,GAAG,GAAG;EACXC,MAAM,GAAG,GAAG;EACZC,eAAe,GAAG,SAAS;EAC3BC,IAAI,GAAG,EAAE;EACTC,QAAQ;EACRC,aAAa,GAAG,SAAS;EACzBC,YAAY,GAAG,EAAE;EACjBC;AACF,CAAC,KAAK;EACJ,MAAMC,SAAS,GAAG7B,QAAQ,CAACkB,KAAK,CAAC;EACjC,MAAMY,UAAU,GAAG5B,OAAO,CAACuB,QAAQ,EAAEE,YAAY,CAAC;EAElD,MAAM,CAAC,CAACI,SAAS,EAAEC,UAAU,CAAC,EAAEC,OAAO,CAAC,GAAG3C,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;EAC3D,MAAM,CAAC4C,WAAW,EAAEC,YAAY,CAAC,GAAG7C,QAAQ,CAAC,KAAK,CAAC;E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E5D;cAAgB,CACxB,CAAC,EACDO,UAAU,IAAIsC,WAAW,IAAI5C,IAAI,gBAChCZ,IAAA,CAACX,IAAI;gBACHyD,CAAC,EAAEU,WAAW,CAACV,CAAE;gBACjBC,CAAC,EAAES,WAAW,CAACT,CAAE;gBACjBnC,IAAI,EAAEA,IAAK;gBACX2D,KAAK,EAAEzD,aAAc;gBACrB8D,IAAI,EAAE1D;cAAW,CAClB,CAAC,GACA,IAAI;YAAA,CACH;UACR,CACG;QAAC,CACD;MAAC,CACM,CAClB;IAAA,CACG;EAAC,CACe,CAAC;AAE7B,CAAC;AAED,MAAM8C,MAAM,GAAGvE,UAAU,CAACoF,MAAM,CAAC;EAC/BZ,SAAS,EAAE;IACTa,QAAQ,EAAE,UAAU;IACpBC,QAAQ,EAAE;EACZ,CAAC;EACDb,OAAO,EAAE;IACPY,QAAQ,EAAE,UAAU;IACpBE,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPxE,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdwE,MAAM,EAAE;EACV,CAAC;EACDd,MAAM,EAAE;IACNU,QAAQ,EAAE,UAAU;IACpBE,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPxE,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdwE,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,eAAe/E,WAAW","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AA0BhD,MAAM,CAAC,OAAO,UAAU,GAAG,sBAiF1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScratchCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScratchCard/ScratchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAiBf,OAAO,EACL,SAAS,EAET,SAAS,EAET,kBAAkB,EAEnB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ScratchCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScratchCard/ScratchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAiBf,OAAO,EACL,SAAS,EAET,SAAS,EAET,kBAAkB,EAEnB,MAAM,cAAc,CAAC;AAYtB,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwL3C,CAAC;AAyBF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AA0BhD,MAAM,CAAC,OAAO,UAAU,GAAG,sBAiF1B"}
|