@nakamura-123/pages 1.4.1 → 1.4.2
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/dist/component/Article/ArticleContentView.d.ts +5 -1
- package/dist/component/Article/ArticleContentView.js +208 -34
- package/dist/component/Article/ArticleImage.d.ts +9 -0
- package/dist/component/Article/ArticleImage.js +46 -0
- package/dist/component/Article/ArticleSectionPager.d.ts +17 -0
- package/dist/component/Article/ArticleSectionPager.js +193 -0
- package/dist/component/Article/ArticleTable.d.ts +10 -0
- package/dist/component/Article/ArticleTable.js +74 -0
- package/dist/component/Article/ChipStrip.d.ts +10 -0
- package/dist/component/Article/ChipStrip.js +82 -0
- package/dist/component/Article/Cloze.d.ts +31 -0
- package/dist/component/Article/Cloze.js +338 -0
- package/dist/component/Article/FramesFigure.d.ts +27 -0
- package/dist/component/Article/FramesFigure.js +438 -0
- package/dist/component/Article/RefLink.d.ts +42 -0
- package/dist/component/Article/RefLink.js +184 -0
- package/dist/component/Rating/RatingBar.d.ts +9 -0
- package/dist/component/Rating/RatingBar.js +358 -0
- package/dist/component/Rating/keyboardScroll.d.ts +7 -0
- package/dist/component/Rating/keyboardScroll.js +37 -0
- package/dist/component/Result/QuizFlatList.js +9 -9
- package/dist/component/Result/ResultActions.js +151 -58
- package/dist/component/Result/ResultHero.js +19 -18
- package/dist/component/SettingBtns/LanguageModal.js +1 -0
- package/dist/functions/articleContentFnc.d.ts +49 -1
- package/dist/functions/articleContentFnc.js +191 -2
- package/dist/functions/ratingFnc.d.ts +4 -0
- package/dist/functions/ratingFnc.js +30 -0
- package/dist/hooks/resultHook.d.ts +2 -1
- package/dist/hooks/resultHook.js +13 -1
- package/dist/page/ArticleDetail.js +58 -15
- package/dist/page/ImgZoom.d.ts +4 -3
- package/dist/page/ImgZoom.js +16 -2
- package/dist/page/QuizPage.js +23 -11
- package/dist/page/ReportPage.js +3 -2
- package/dist/quiz/QuizContentsDrill.js +26 -16
- package/dist/quiz/common/MyTextqqyy.d.ts +4 -0
- package/dist/quiz/common/MyTextqqyy.js +14 -4
- package/dist/quiz/explain/ExplainLogic.d.ts +1 -0
- package/dist/quiz/explain/ExplainLogic.js +3 -2
- package/dist/quiz/explain/NormalExplain.js +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
const react_1 = __importStar(require("react"));
|
|
38
|
+
const react_native_1 = require("react-native");
|
|
39
|
+
const react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
40
|
+
const react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
|
|
41
|
+
const react_redux_1 = require("react-redux");
|
|
42
|
+
const lib_1 = require("@nakamura-123/lib");
|
|
43
|
+
const common_1 = require("@nakamura-123/common");
|
|
44
|
+
const stores_1 = require("@nakamura-123/stores");
|
|
45
|
+
// コマの中の部品は、出る順に BEAT ずつずらして出す(試作 frames_ui_mock と同じ)
|
|
46
|
+
const BEAT = 420;
|
|
47
|
+
const MIN_OPACITY = 0.001;
|
|
48
|
+
const SHAPES = {
|
|
49
|
+
g: react_native_svg_1.G,
|
|
50
|
+
rect: react_native_svg_1.Rect,
|
|
51
|
+
line: react_native_svg_1.Line,
|
|
52
|
+
circle: react_native_svg_1.Circle,
|
|
53
|
+
path: react_native_svg_1.Path,
|
|
54
|
+
polyline: react_native_svg_1.Polyline,
|
|
55
|
+
polygon: react_native_svg_1.Polygon,
|
|
56
|
+
};
|
|
57
|
+
// 図の字体はアプリの本文と同じにする(解説図の作り方「見た目の決まり」。SVGにはヒラギノと書いてあっても使わない)
|
|
58
|
+
const textFont = (a) => a.fontWeight === "bold" || a.fontWeight === "700"
|
|
59
|
+
? "ZenKakuGothicNew_700Bold"
|
|
60
|
+
: "ZenKakuGothicNew_500Medium";
|
|
61
|
+
const renderNode = (n, key) => {
|
|
62
|
+
var _a, _b;
|
|
63
|
+
if (n.t === "text") {
|
|
64
|
+
const _c = n.a, { fontWeight } = _c, rest = __rest(_c, ["fontWeight"]);
|
|
65
|
+
return (<react_native_svg_1.Text key={key} {...rest} fontFamily={textFont(n.a)}>
|
|
66
|
+
{n.x}
|
|
67
|
+
</react_native_svg_1.Text>);
|
|
68
|
+
}
|
|
69
|
+
if (n.t === "clipPath")
|
|
70
|
+
return (<react_native_svg_1.ClipPath key={key} id={n.a.id}>
|
|
71
|
+
{(_a = n.c) === null || _a === void 0 ? void 0 : _a.map(renderNode)}
|
|
72
|
+
</react_native_svg_1.ClipPath>);
|
|
73
|
+
const Shape = SHAPES[n.t];
|
|
74
|
+
if (!Shape)
|
|
75
|
+
return null;
|
|
76
|
+
return (<Shape key={key} {...n.a}>
|
|
77
|
+
{(_b = n.c) === null || _b === void 0 ? void 0 : _b.map(renderNode)}
|
|
78
|
+
</Shape>);
|
|
79
|
+
};
|
|
80
|
+
// 線(直線・折れ線・塗りの無い線)は端から伸ばす。長さが要るので、直線と折れ線だけ伸ばし、ほかはふわっと出す
|
|
81
|
+
const lineLength = (n) => {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
const num = (k) => { var _a; return parseFloat((_a = n.a[k]) !== null && _a !== void 0 ? _a : "0"); };
|
|
84
|
+
if (n.t === "line")
|
|
85
|
+
return Math.hypot(num("x2") - num("x1"), num("y2") - num("y1"));
|
|
86
|
+
if (n.t === "polyline" && ((_a = n.a.fill) !== null && _a !== void 0 ? _a : "none") === "none") {
|
|
87
|
+
const pts = ((_b = n.a.points) !== null && _b !== void 0 ? _b : "")
|
|
88
|
+
.trim()
|
|
89
|
+
.split(/[\s,]+/)
|
|
90
|
+
.map(parseFloat);
|
|
91
|
+
let len = 0;
|
|
92
|
+
for (let i = 2; i + 1 < pts.length; i += 2)
|
|
93
|
+
len += Math.hypot(pts[i] - pts[i - 2], pts[i + 1] - pts[i - 1]);
|
|
94
|
+
return len;
|
|
95
|
+
}
|
|
96
|
+
return null;
|
|
97
|
+
};
|
|
98
|
+
const AnimatedLine = react_native_reanimated_1.default.createAnimatedComponent(react_native_svg_1.Line);
|
|
99
|
+
const AnimatedPolyline = react_native_reanimated_1.default.createAnimatedComponent(react_native_svg_1.Polyline);
|
|
100
|
+
const AnimatedG = react_native_reanimated_1.default.createAnimatedComponent(react_native_svg_1.G);
|
|
101
|
+
// 今のコマで出す1つの部品。出る順(u)だけ遅らせて、線は伸ばし、ほかはふわっと出す。
|
|
102
|
+
// 待つ時間も含めて押した瞬間から値を動かし、待つ間は計算で隠す。reanimatedは値が動き出すまで属性を描き直さないので、
|
|
103
|
+
// withDelayで待たせると、待つ間は部品が見えていて、動き出す時に一度消えて出直す(点滅して見える。11/07、本人の指摘)
|
|
104
|
+
const RevealNode = ({ node, delay, }) => {
|
|
105
|
+
const length = lineLength(node);
|
|
106
|
+
const duration = length !== null ? BEAT - 40 : BEAT - 120;
|
|
107
|
+
const elapsed = (0, react_native_reanimated_1.useSharedValue)(0);
|
|
108
|
+
(0, react_1.useEffect)(() => {
|
|
109
|
+
elapsed.value = (0, react_native_reanimated_1.withTiming)(delay + duration, {
|
|
110
|
+
duration: delay + duration,
|
|
111
|
+
easing: react_native_reanimated_1.Easing.linear,
|
|
112
|
+
});
|
|
113
|
+
}, []);
|
|
114
|
+
// 待つ間は0、そのあと0→1(終わりをゆるやかに。試作の ease-out に合わせる)
|
|
115
|
+
const progress = (t) => {
|
|
116
|
+
"worklet";
|
|
117
|
+
const x = Math.min(1, Math.max(0, (t - delay) / duration));
|
|
118
|
+
return 1 - Math.pow(1 - x, 3);
|
|
119
|
+
};
|
|
120
|
+
const lineProps = (0, react_native_reanimated_1.useAnimatedProps)(() => ({
|
|
121
|
+
strokeDashoffset: (length !== null && length !== void 0 ? length : 0) * (1 - progress(elapsed.value)),
|
|
122
|
+
}));
|
|
123
|
+
// 透明の度合いがちょうど0だと、react-native-svg の G は透明にならず、ふつうに描く(シミュレータで確かめた)。見えないほど小さい値にする
|
|
124
|
+
const fadeProps = (0, react_native_reanimated_1.useAnimatedProps)(() => ({
|
|
125
|
+
opacity: Math.max(MIN_OPACITY, progress(elapsed.value)),
|
|
126
|
+
}));
|
|
127
|
+
if (length !== null) {
|
|
128
|
+
const Comp = node.t === "line" ? AnimatedLine : AnimatedPolyline;
|
|
129
|
+
// 点線の部品は伸ばす形にすると点線が消えるので、ふわっと出す
|
|
130
|
+
if (!node.a.strokeDasharray)
|
|
131
|
+
return (<Comp {...node.a} strokeDasharray={[length, length]} strokeDashoffset={length} animatedProps={lineProps}/>);
|
|
132
|
+
}
|
|
133
|
+
return (<AnimatedG opacity={MIN_OPACITY} animatedProps={fadeProps}>
|
|
134
|
+
{renderNode(node, 0)}
|
|
135
|
+
</AnimatedG>);
|
|
136
|
+
};
|
|
137
|
+
// 説明の帯の文。コマの番号は付けない(図の中の番号とずれて紛らわしい。11/08、本人)
|
|
138
|
+
const CaptionRow = ({ text }) => (<common_1.MyText weight={700} color="text" style={styles.captionText}>
|
|
139
|
+
{text}
|
|
140
|
+
</common_1.MyText>);
|
|
141
|
+
// コマが変わったとき、文を少し下からふわっと出す。図を見ていても、目の端で変わったと分かるように(11/08、本人)
|
|
142
|
+
const CaptionSwap = ({ children }) => {
|
|
143
|
+
const shown = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
|
|
144
|
+
(0, react_1.useEffect)(() => {
|
|
145
|
+
react_native_1.Animated.timing(shown, {
|
|
146
|
+
toValue: 1,
|
|
147
|
+
duration: 260,
|
|
148
|
+
easing: react_native_1.Easing.out(react_native_1.Easing.cubic),
|
|
149
|
+
useNativeDriver: true,
|
|
150
|
+
}).start();
|
|
151
|
+
}, []);
|
|
152
|
+
return (<react_native_1.Animated.View style={{
|
|
153
|
+
opacity: shown,
|
|
154
|
+
transform: [
|
|
155
|
+
{
|
|
156
|
+
translateY: shown.interpolate({
|
|
157
|
+
inputRange: [0, 1],
|
|
158
|
+
outputRange: [6, 0],
|
|
159
|
+
}),
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
}}>
|
|
163
|
+
{children}
|
|
164
|
+
</react_native_1.Animated.View>);
|
|
165
|
+
};
|
|
166
|
+
// はじめのうちは、図が画面に入ったときに左右2色で覆って押し方を見せ、少ししたら消す
|
|
167
|
+
// (11/07、本人。初回だけだと見逃すため5回。出したままだと図が見えないので消す)
|
|
168
|
+
const HINT_TIMES = 5;
|
|
169
|
+
const COVER_SHOW_MS = 2500;
|
|
170
|
+
// コマ送りの図。図の右半分を押すと進み、左半分で戻る。最後のコマ(完成図)で右を押すと1コマ目から(frames_notes.md)
|
|
171
|
+
const FramesFigure = ({ data, startAt, navigation, zoomPath, }) => {
|
|
172
|
+
var _a;
|
|
173
|
+
const dispatch = (0, react_redux_1.useDispatch)();
|
|
174
|
+
const { t } = (0, common_1.useDrillTranslation)();
|
|
175
|
+
const framesStarted = (0, react_redux_1.useSelector)((state) => { var _a; return (_a = state.setting.framesStarted) !== null && _a !== void 0 ? _a : 0; });
|
|
176
|
+
const [step, setStep] = (0, react_1.useState)(startAt === "first" ? 1 : data.steps);
|
|
177
|
+
// まだこの図を押していないか。押すまでは説明の欄に押し方を出す
|
|
178
|
+
const [touched, setTouched] = (0, react_1.useState)(false);
|
|
179
|
+
// 動かしている間だけ、今のコマの部品を別の層で描く(動かす部品を少なくすると Android でも重くならない。11/03の試験)
|
|
180
|
+
const [animating, setAnimating] = (0, react_1.useState)(false);
|
|
181
|
+
// 動き終わった部品を下の層に描き足したか。上の層を消す前に描き足しておく(同時にすると、下の層が描き終わるまでの一瞬だけ部品が消えて点滅する)
|
|
182
|
+
const [settled, setSettled] = (0, react_1.useState)(true);
|
|
183
|
+
const [animKey, setAnimKey] = (0, react_1.useState)(0);
|
|
184
|
+
const [width, setWidth] = (0, react_1.useState)(0);
|
|
185
|
+
const [captionHeight, setCaptionHeight] = (0, react_1.useState)(0);
|
|
186
|
+
const timers = (0, react_1.useRef)([]);
|
|
187
|
+
const [vx, vy, vw, vh] = data.v;
|
|
188
|
+
const height = width * (vh / vw);
|
|
189
|
+
// 数え始める前の回数で決める(押した瞬間に回数が増えても、この図では決めたまま)
|
|
190
|
+
const [useCover] = (0, react_1.useState)(framesStarted < HINT_TIMES);
|
|
191
|
+
const [coverOn, setCoverOn] = (0, react_1.useState)(false);
|
|
192
|
+
const coverOpacity = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
|
|
193
|
+
const boxRef = (0, react_1.useRef)(null);
|
|
194
|
+
(0, react_1.useEffect)(() => () => timers.current.forEach(clearTimeout), []);
|
|
195
|
+
// 図が画面に入ったら覆いを出す(ページを開いた時点で出すと、下の方の図はそこまで読む前に消えてしまう)。
|
|
196
|
+
// LESSONは横に並んだページなので、横に外れている間も出さない
|
|
197
|
+
(0, react_1.useEffect)(() => {
|
|
198
|
+
if (!useCover)
|
|
199
|
+
return;
|
|
200
|
+
const { width: sw, height: sh } = react_native_1.Dimensions.get("window");
|
|
201
|
+
const timer = setInterval(() => {
|
|
202
|
+
var _a;
|
|
203
|
+
(_a = boxRef.current) === null || _a === void 0 ? void 0 : _a.measureInWindow((x, y, w, h) => {
|
|
204
|
+
if (!w || x < 0 || x >= sw || y + h < sh * 0.25 || y > sh * 0.75)
|
|
205
|
+
return;
|
|
206
|
+
clearInterval(timer);
|
|
207
|
+
setCoverOn(true);
|
|
208
|
+
react_native_1.Animated.sequence([
|
|
209
|
+
react_native_1.Animated.timing(coverOpacity, {
|
|
210
|
+
toValue: 1,
|
|
211
|
+
duration: 250,
|
|
212
|
+
useNativeDriver: true,
|
|
213
|
+
}),
|
|
214
|
+
react_native_1.Animated.delay(COVER_SHOW_MS),
|
|
215
|
+
react_native_1.Animated.timing(coverOpacity, {
|
|
216
|
+
toValue: 0,
|
|
217
|
+
duration: 600,
|
|
218
|
+
useNativeDriver: true,
|
|
219
|
+
}),
|
|
220
|
+
]).start(() => setCoverOn(false));
|
|
221
|
+
});
|
|
222
|
+
}, 400);
|
|
223
|
+
return () => clearInterval(timer);
|
|
224
|
+
}, [useCover]);
|
|
225
|
+
const go = (next, animate) => {
|
|
226
|
+
timers.current.forEach(clearTimeout);
|
|
227
|
+
timers.current = [];
|
|
228
|
+
setStep(next);
|
|
229
|
+
setAnimating(animate);
|
|
230
|
+
setSettled(!animate);
|
|
231
|
+
if (animate) {
|
|
232
|
+
setAnimKey((k) => k + 1);
|
|
233
|
+
const subs = Math.max(1, ...data.nodes.filter((n) => n.s === next).map((n) => { var _a; return (_a = n.u) !== null && _a !== void 0 ? _a : 1; }));
|
|
234
|
+
const end = subs * BEAT + 60;
|
|
235
|
+
timers.current.push(setTimeout(() => setSettled(true), end));
|
|
236
|
+
timers.current.push(setTimeout(() => setAnimating(false), end + 200));
|
|
237
|
+
}
|
|
238
|
+
if (coverOn) {
|
|
239
|
+
coverOpacity.stopAnimation();
|
|
240
|
+
setCoverOn(false);
|
|
241
|
+
}
|
|
242
|
+
if (!touched) {
|
|
243
|
+
setTouched(true);
|
|
244
|
+
if (framesStarted < HINT_TIMES) {
|
|
245
|
+
dispatch({ type: "setting/countFramesStarted" });
|
|
246
|
+
dispatch(stores_1.settingStorage.saveSetting());
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
const onNext = () => (step < data.steps ? go(step + 1, true) : go(1, true));
|
|
251
|
+
// 最初のコマで戻ると最後のコマ(完成図)へ。進むが最後から最初へ回るのと対にする
|
|
252
|
+
const onPrev = () => go(step > 1 ? step - 1 : data.steps, false);
|
|
253
|
+
// 重なりの順を変えないよう、元の並びのまま「今までのコマ」を描く(動かしている部品だけ上の層へ)
|
|
254
|
+
const staticNodes = data.nodes.filter((n) => n.s === undefined || n.s < step || (n.s === step && settled));
|
|
255
|
+
const movingNodes = animating ? data.nodes.filter((n) => n.s === step) : [];
|
|
256
|
+
const caption = (_a = data.captions[step - 1]) !== null && _a !== void 0 ? _a : "";
|
|
257
|
+
return (<react_native_1.View onLayout={(e) => setWidth(e.nativeEvent.layout.width)}>
|
|
258
|
+
{/* 説明は図の上に、色の地の帯で出す。図を押す指で隠れず、本文とも見分けられるように(11/08、本人。前は図の下)。
|
|
259
|
+
欄は、その図でいちばん長い文の高さにする(文の長さで図が上下に動かないように) */}
|
|
260
|
+
<react_native_1.View style={[styles.captionBox, { minHeight: captionHeight }]}>
|
|
261
|
+
{data.captions.map((c, i) => (<react_native_1.View key={i} pointerEvents="none" style={[styles.captionBand, styles.captionMeasure]} onLayout={(e) => {
|
|
262
|
+
const h = e.nativeEvent.layout.height;
|
|
263
|
+
setCaptionHeight((prev) => Math.max(prev, h));
|
|
264
|
+
}}>
|
|
265
|
+
<react_native_1.View style={styles.captionInner}>
|
|
266
|
+
<CaptionRow text={c}/>
|
|
267
|
+
</react_native_1.View>
|
|
268
|
+
</react_native_1.View>))}
|
|
269
|
+
{touched ? (<react_native_1.View style={[styles.captionBand, { minHeight: captionHeight }]}>
|
|
270
|
+
<react_native_1.View style={styles.captionInner}>
|
|
271
|
+
<CaptionSwap key={step}>
|
|
272
|
+
<CaptionRow text={caption}/>
|
|
273
|
+
</CaptionSwap>
|
|
274
|
+
</react_native_1.View>
|
|
275
|
+
</react_native_1.View>) : (
|
|
276
|
+
// 押す前の完成図には、コマ送りの図だと分かる札を出す。普通の図と見分けられるよう少し目立たせるが、
|
|
277
|
+
// 本文の邪魔にならないよう小さく白地にする(11/07、本人)
|
|
278
|
+
// 札は押す所に見えるので、押しても図を押したときと同じく1コマ目から動かす(11/07、本人)
|
|
279
|
+
<react_native_1.Pressable style={styles.hintPill} onPress={onNext} hitSlop={6}>
|
|
280
|
+
<common_1.Icon5 name="play-circle" size={14} color="red" solid/>
|
|
281
|
+
<common_1.MyText fsize="sm" weight={700} color="darkGray">
|
|
282
|
+
{t("article.framesHint")}
|
|
283
|
+
</common_1.MyText>
|
|
284
|
+
</react_native_1.Pressable>)}
|
|
285
|
+
</react_native_1.View>
|
|
286
|
+
|
|
287
|
+
{/* 今が何コマ目か。説明の帯のすぐ下に置く(11/08、本人。前は図の下) */}
|
|
288
|
+
<react_native_1.View style={styles.segments}>
|
|
289
|
+
{Array.from({ length: data.steps }, (_, i) => (<react_native_1.View key={i} style={[styles.segment, i < step && styles.segmentDone]}/>))}
|
|
290
|
+
</react_native_1.View>
|
|
291
|
+
|
|
292
|
+
{width > 0 && (<react_native_1.View ref={boxRef} collapsable={false} style={{ width, height }}>
|
|
293
|
+
<react_native_svg_1.default width={width} height={height} viewBox={`${vx} ${vy} ${vw} ${vh}`}>
|
|
294
|
+
<react_native_svg_1.Defs>{data.defs.map(renderNode)}</react_native_svg_1.Defs>
|
|
295
|
+
{staticNodes.map(renderNode)}
|
|
296
|
+
</react_native_svg_1.default>
|
|
297
|
+
{movingNodes.length > 0 && (<react_native_svg_1.default key={animKey} width={width} height={height} viewBox={`${vx} ${vy} ${vw} ${vh}`} style={react_native_1.StyleSheet.absoluteFill}>
|
|
298
|
+
<react_native_svg_1.Defs>{data.defs.map(renderNode)}</react_native_svg_1.Defs>
|
|
299
|
+
{movingNodes.flatMap((g, gi) => {
|
|
300
|
+
var _a;
|
|
301
|
+
return ((_a = g.c) !== null && _a !== void 0 ? _a : []).map((child, ci) => {
|
|
302
|
+
var _a;
|
|
303
|
+
return (<react_native_svg_1.G key={`${gi}-${ci}`} {...g.a}>
|
|
304
|
+
<RevealNode node={child} delay={(((_a = g.u) !== null && _a !== void 0 ? _a : 1) - 1) * BEAT}/>
|
|
305
|
+
</react_native_svg_1.G>);
|
|
306
|
+
});
|
|
307
|
+
})}
|
|
308
|
+
</react_native_svg_1.default>)}
|
|
309
|
+
|
|
310
|
+
{/* 図の右半分で進み、左半分で戻る */}
|
|
311
|
+
<react_native_1.View style={styles.tapRow}>
|
|
312
|
+
<react_native_1.Pressable style={styles.tapHalf} onPress={onPrev}/>
|
|
313
|
+
<react_native_1.Pressable style={styles.tapHalf} onPress={onNext}/>
|
|
314
|
+
</react_native_1.View>
|
|
315
|
+
|
|
316
|
+
{/* はじめの5回は、押す所を左右2色で数秒だけ見せる(矢印は押す所に見えてしまうのでやめた) */}
|
|
317
|
+
{coverOn && !touched && (<react_native_1.Animated.View pointerEvents="none" style={[styles.tapRow, { opacity: coverOpacity }]}>
|
|
318
|
+
<react_native_1.View style={[styles.tapHalf, styles.coverBack]}>
|
|
319
|
+
<react_native_1.View style={styles.coverLabel}>
|
|
320
|
+
<common_1.Icon5 name="chevron-left" size={12} color="darkGray"/>
|
|
321
|
+
<common_1.MyText fsize="sm" weight={700} color="darkGray">
|
|
322
|
+
{t("article.framesBack")}
|
|
323
|
+
</common_1.MyText>
|
|
324
|
+
</react_native_1.View>
|
|
325
|
+
</react_native_1.View>
|
|
326
|
+
<react_native_1.View style={[styles.tapHalf, styles.coverNext]}>
|
|
327
|
+
<react_native_1.View style={styles.coverLabel}>
|
|
328
|
+
<common_1.MyText fsize="sm" weight={700} color="darkGray">
|
|
329
|
+
{t("article.framesNext")}
|
|
330
|
+
</common_1.MyText>
|
|
331
|
+
<common_1.Icon5 name="chevron-right" size={12} color="darkGray"/>
|
|
332
|
+
</react_native_1.View>
|
|
333
|
+
</react_native_1.View>
|
|
334
|
+
</react_native_1.Animated.View>)}
|
|
335
|
+
|
|
336
|
+
{/* 図を押すとコマが進むので、拡大は右上の小さな印から開く */}
|
|
337
|
+
{zoomPath !== undefined && (<react_native_1.Pressable style={styles.zoom} hitSlop={8} onPress={() => navigation.navigate("ImgZoom", { path: zoomPath })}>
|
|
338
|
+
<common_1.Icon5 name="search-plus" size={13} color="darkGray"/>
|
|
339
|
+
</react_native_1.Pressable>)}
|
|
340
|
+
</react_native_1.View>)}
|
|
341
|
+
</react_native_1.View>);
|
|
342
|
+
};
|
|
343
|
+
const styles = react_native_1.StyleSheet.create({
|
|
344
|
+
segments: {
|
|
345
|
+
flexDirection: "row",
|
|
346
|
+
gap: 3,
|
|
347
|
+
marginBottom: 8,
|
|
348
|
+
},
|
|
349
|
+
segment: {
|
|
350
|
+
flex: 1,
|
|
351
|
+
height: 3,
|
|
352
|
+
borderRadius: 2,
|
|
353
|
+
backgroundColor: lib_1.colors.light,
|
|
354
|
+
},
|
|
355
|
+
segmentDone: {
|
|
356
|
+
backgroundColor: lib_1.colors.green,
|
|
357
|
+
},
|
|
358
|
+
tapRow: Object.assign(Object.assign({}, react_native_1.StyleSheet.absoluteFillObject), { flexDirection: "row" }),
|
|
359
|
+
tapHalf: {
|
|
360
|
+
flex: 1,
|
|
361
|
+
},
|
|
362
|
+
// 押す所の覆い。戻る(左)は薄い青、進む(右)は薄い赤(アプリの青と赤。図は透けて見える)
|
|
363
|
+
coverBack: {
|
|
364
|
+
backgroundColor: "rgba(153,183,221,0.35)",
|
|
365
|
+
alignItems: "center",
|
|
366
|
+
justifyContent: "center",
|
|
367
|
+
},
|
|
368
|
+
coverNext: {
|
|
369
|
+
backgroundColor: "rgba(234,122,83,0.25)",
|
|
370
|
+
alignItems: "center",
|
|
371
|
+
justifyContent: "center",
|
|
372
|
+
},
|
|
373
|
+
coverLabel: {
|
|
374
|
+
flexDirection: "row",
|
|
375
|
+
alignItems: "center",
|
|
376
|
+
gap: 6,
|
|
377
|
+
paddingHorizontal: 14,
|
|
378
|
+
paddingVertical: 7,
|
|
379
|
+
borderRadius: 999,
|
|
380
|
+
backgroundColor: "rgba(255,255,255,0.9)",
|
|
381
|
+
},
|
|
382
|
+
zoom: {
|
|
383
|
+
position: "absolute",
|
|
384
|
+
top: 6,
|
|
385
|
+
right: 6,
|
|
386
|
+
width: 28,
|
|
387
|
+
height: 28,
|
|
388
|
+
borderRadius: 14,
|
|
389
|
+
alignItems: "center",
|
|
390
|
+
justifyContent: "center",
|
|
391
|
+
backgroundColor: "rgba(255,255,255,0.85)",
|
|
392
|
+
borderWidth: 1,
|
|
393
|
+
borderColor: lib_1.colors.light,
|
|
394
|
+
},
|
|
395
|
+
captionBox: {
|
|
396
|
+
marginBottom: 6,
|
|
397
|
+
justifyContent: "center",
|
|
398
|
+
},
|
|
399
|
+
captionMeasure: {
|
|
400
|
+
position: "absolute",
|
|
401
|
+
left: 0,
|
|
402
|
+
right: 0,
|
|
403
|
+
opacity: 0,
|
|
404
|
+
},
|
|
405
|
+
// アプリの色に合わせ、ベージュの地の上に白い帯と緑(レッスンモードの色)の縦線で出す。縦線は左右同じ太さ(11/08、本人)。
|
|
406
|
+
// 縦線は緑の地の上に白い帯を重ねて作る。Androidでは角を丸めた枠の辺ごとの色が効かず、全体の枠の色で描かれた(2026-11-08、Pixel 8a)
|
|
407
|
+
captionBand: {
|
|
408
|
+
paddingHorizontal: 5,
|
|
409
|
+
borderRadius: 8,
|
|
410
|
+
overflow: "hidden",
|
|
411
|
+
backgroundColor: lib_1.colors.green,
|
|
412
|
+
},
|
|
413
|
+
captionInner: {
|
|
414
|
+
flexGrow: 1,
|
|
415
|
+
justifyContent: "center",
|
|
416
|
+
paddingVertical: 8,
|
|
417
|
+
paddingHorizontal: 12,
|
|
418
|
+
backgroundColor: lib_1.colors.white,
|
|
419
|
+
},
|
|
420
|
+
// 説明の文は16pt(本文の標準より1pt大きい)で、文字の大きさの設定では変えない(frames_notes.md)
|
|
421
|
+
captionText: {
|
|
422
|
+
fontSize: 16,
|
|
423
|
+
lineHeight: 23,
|
|
424
|
+
},
|
|
425
|
+
hintPill: {
|
|
426
|
+
alignSelf: "center",
|
|
427
|
+
flexDirection: "row",
|
|
428
|
+
alignItems: "center",
|
|
429
|
+
gap: 6,
|
|
430
|
+
paddingHorizontal: 12,
|
|
431
|
+
paddingVertical: 5,
|
|
432
|
+
borderRadius: 999,
|
|
433
|
+
borderWidth: 1,
|
|
434
|
+
borderColor: "rgba(234,122,83,0.45)",
|
|
435
|
+
backgroundColor: lib_1.colors.white,
|
|
436
|
+
},
|
|
437
|
+
});
|
|
438
|
+
exports.default = FramesFigure;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StackNavigationProp } from "@react-navigation/stack";
|
|
3
|
+
import { FontSize } from "@nakamura-123/lib";
|
|
4
|
+
import { Nav } from "@nakamura-123/types";
|
|
5
|
+
import { LessonAnchor } from "../../functions/articleContentFnc";
|
|
6
|
+
type LastRef = {
|
|
7
|
+
kind: "lesson";
|
|
8
|
+
id: string;
|
|
9
|
+
} | {
|
|
10
|
+
kind: "fig";
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
interface RefLinkState {
|
|
14
|
+
openFig: (name: string) => void;
|
|
15
|
+
openLesson: (id: string, restore?: boolean) => void;
|
|
16
|
+
nameOf: (name: string) => string;
|
|
17
|
+
lessonOf: (id: string) => LessonAnchor | undefined;
|
|
18
|
+
last: LastRef | null;
|
|
19
|
+
}
|
|
20
|
+
export declare const useRefLink: () => RefLinkState | null;
|
|
21
|
+
export declare const RefLinkProvider: React.FC<{
|
|
22
|
+
navigation: StackNavigationProp<Nav.RootStackParamList>;
|
|
23
|
+
origin: "explain" | "lesson";
|
|
24
|
+
resetKey?: number;
|
|
25
|
+
children: React.ReactNode;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const FigChip: React.FC<{
|
|
28
|
+
name: string;
|
|
29
|
+
fsize: FontSize;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const LessonChip: React.FC<{
|
|
32
|
+
id: string;
|
|
33
|
+
fsize: FontSize;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const CornerButton: React.FC<{
|
|
36
|
+
icon: string;
|
|
37
|
+
label: string;
|
|
38
|
+
tone: "reopen" | "back";
|
|
39
|
+
onPress: () => void;
|
|
40
|
+
}>;
|
|
41
|
+
export declare const ReopenButton: React.FC;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.ReopenButton = exports.CornerButton = exports.LessonChip = exports.FigChip = exports.RefLinkProvider = exports.useRefLink = void 0;
|
|
27
|
+
const react_1 = __importStar(require("react"));
|
|
28
|
+
const react_native_1 = require("react-native");
|
|
29
|
+
const react_redux_1 = require("react-redux");
|
|
30
|
+
const lib_1 = require("@nakamura-123/lib");
|
|
31
|
+
const common_1 = require("@nakamura-123/common");
|
|
32
|
+
const articleContentFnc_1 = require("../../functions/articleContentFnc");
|
|
33
|
+
// 札の色(10/24、figchip_mock のB)。見出しの帯や表の黒と分け、押すと開くと分かるようにする
|
|
34
|
+
const LINK_NAVY = "#1B3A6B";
|
|
35
|
+
const LINK_NAVY_LINE = "#9DB0CF";
|
|
36
|
+
// 右下のボタン(toggle_btn_mock)。開き直すのは濃い灰色、戻るのは赤
|
|
37
|
+
const CORNER_DARK = "#2B2F33";
|
|
38
|
+
const RefLinkContext = (0, react_1.createContext)(null);
|
|
39
|
+
const useRefLink = () => (0, react_1.useContext)(RefLinkContext);
|
|
40
|
+
exports.useRefLink = useRefLink;
|
|
41
|
+
// 札から開いた先の画面に「〇〇に戻る」を出すため、どこから開いたかを持つ。
|
|
42
|
+
// resetKeyが変わったら最後に開いたものを忘れる(解説では問題が変わったら消す)
|
|
43
|
+
const RefLinkProvider = ({ navigation, origin, resetKey, children }) => {
|
|
44
|
+
const rImgs = (0, react_redux_1.useSelector)((state) => state.app.imgs.rImgs);
|
|
45
|
+
const figNames = (0, react_redux_1.useSelector)((state) => state.app.imgs.figNames);
|
|
46
|
+
const articleContents = (0, react_redux_1.useSelector)((state) => state.app.articleContents);
|
|
47
|
+
const articleList = (0, react_redux_1.useSelector)((state) => state.app.articleList);
|
|
48
|
+
const anchors = (0, react_1.useMemo)(() => (origin === "explain" ? (0, articleContentFnc_1.collectLessonAnchors)(articleContents) : {}), [origin, articleContents]);
|
|
49
|
+
const [last, setLast] = (0, react_1.useState)(null);
|
|
50
|
+
(0, react_1.useEffect)(() => setLast(null), [resetKey]);
|
|
51
|
+
const value = (0, react_1.useMemo)(() => ({
|
|
52
|
+
openFig: (name) => {
|
|
53
|
+
const path = rImgs ? lib_1.utilFnc.getrImgPath(rImgs, name) : undefined;
|
|
54
|
+
if (path === undefined) {
|
|
55
|
+
if (__DEV__)
|
|
56
|
+
console.warn(`[figref] 図がrImgsにありません: "${name}"`);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
setLast({ kind: "fig", name });
|
|
60
|
+
navigation.navigate("ImgZoom", { path, backTo: origin });
|
|
61
|
+
},
|
|
62
|
+
openLesson: (id, restore = false) => {
|
|
63
|
+
var _a, _b;
|
|
64
|
+
const anchor = anchors[id];
|
|
65
|
+
if (!anchor)
|
|
66
|
+
return;
|
|
67
|
+
const isTarget = (i) => i.type === "article" && String(i.key) === anchor.articleId;
|
|
68
|
+
const chapter = articleList.find((entry) => entry.items.some(isTarget));
|
|
69
|
+
const item = chapter === null || chapter === void 0 ? void 0 : chapter.items.find(isTarget);
|
|
70
|
+
setLast({ kind: "lesson", id });
|
|
71
|
+
navigation.navigate("ArticleDetail", {
|
|
72
|
+
// 問題画面から開く説明の決まり(GGuideBtnと同じ)
|
|
73
|
+
subject: "basic1",
|
|
74
|
+
chapterKey: (_a = chapter === null || chapter === void 0 ? void 0 : chapter.key) !== null && _a !== void 0 ? _a : 0,
|
|
75
|
+
articleId: anchor.articleId,
|
|
76
|
+
title: (_b = item === null || item === void 0 ? void 0 : item.title) !== null && _b !== void 0 ? _b : anchor.title,
|
|
77
|
+
isGuide: true,
|
|
78
|
+
sectionId: id,
|
|
79
|
+
backTo: "explain",
|
|
80
|
+
restorePosition: restore,
|
|
81
|
+
});
|
|
82
|
+
},
|
|
83
|
+
nameOf: (name) => { var _a; return (_a = figNames === null || figNames === void 0 ? void 0 : figNames[name]) !== null && _a !== void 0 ? _a : name; },
|
|
84
|
+
lessonOf: (id) => anchors[id],
|
|
85
|
+
last,
|
|
86
|
+
}), [navigation, origin, rImgs, figNames, anchors, articleList, last]);
|
|
87
|
+
return (<RefLinkContext.Provider value={value}>{children}</RefLinkContext.Provider>);
|
|
88
|
+
};
|
|
89
|
+
exports.RefLinkProvider = RefLinkProvider;
|
|
90
|
+
// 文の中の札。紺の地に白抜きのアイコン+紺の文字と下線。
|
|
91
|
+
// アイコンも文字(アイコンの字体)として文に入れる。文の中に箱(View)を置くと、iOSの新しい描画方式では
|
|
92
|
+
// その後ろの文字の押した位置の判定が箱の幅の分ずれ、札の右側が押せなくなるため
|
|
93
|
+
const InlineChip = ({ icon, fsize, onPress, children }) => {
|
|
94
|
+
const px = (0, articleContentFnc_1.fsizeToPx)(fsize);
|
|
95
|
+
return (<common_1.MyText fsize={fsize} weight={700} style={styles.chipText} onPress={onPress} suppressHighlighting>
|
|
96
|
+
<common_1.Icon5 name={icon} size={px * 0.7} color="white" solid style={styles.chipIcon}/>
|
|
97
|
+
{" "}
|
|
98
|
+
{children}
|
|
99
|
+
</common_1.MyText>);
|
|
100
|
+
};
|
|
101
|
+
// 図の札。押すとその図が拡大の画面で開く
|
|
102
|
+
const FigChip = ({ name, fsize, }) => {
|
|
103
|
+
var _a;
|
|
104
|
+
const ref = (0, exports.useRefLink)();
|
|
105
|
+
return (<InlineChip icon="image" fsize={fsize} onPress={() => ref === null || ref === void 0 ? void 0 : ref.openFig(name)}>
|
|
106
|
+
{(_a = ref === null || ref === void 0 ? void 0 : ref.nameOf(name)) !== null && _a !== void 0 ? _a : name}
|
|
107
|
+
</InlineChip>);
|
|
108
|
+
};
|
|
109
|
+
exports.FigChip = FigChip;
|
|
110
|
+
// LESSONの札(解説の lesson[名札])。本のアイコン+小さな「LESSON」+見出しの名前。押すとその見出しのページで開く。
|
|
111
|
+
// 名札の記事がまだアプリに無いときは、押せない灰色の「LESSON」だけを出す
|
|
112
|
+
const LessonChip = ({ id, fsize, }) => {
|
|
113
|
+
const ref = (0, exports.useRefLink)();
|
|
114
|
+
const anchor = ref === null || ref === void 0 ? void 0 : ref.lessonOf(id);
|
|
115
|
+
if (!ref || !anchor)
|
|
116
|
+
return (<common_1.MyText fsize={fsize} weight={700} color="ltBlack">
|
|
117
|
+
LESSON
|
|
118
|
+
</common_1.MyText>);
|
|
119
|
+
const px = (0, articleContentFnc_1.fsizeToPx)(fsize);
|
|
120
|
+
return (<InlineChip icon="book" fsize={fsize} onPress={() => ref.openLesson(id)}>
|
|
121
|
+
{"LESSON "}
|
|
122
|
+
{anchor.title}
|
|
123
|
+
</InlineChip>);
|
|
124
|
+
};
|
|
125
|
+
exports.LessonChip = LessonChip;
|
|
126
|
+
// 右下のボタン。tone="back"は開いた先の「〇〇に戻る」
|
|
127
|
+
const CornerButton = ({ icon, label, tone, onPress }) => (<common_1.PressAnimatedWrap onPress={onPress} style={[
|
|
128
|
+
styles.corner,
|
|
129
|
+
{ backgroundColor: tone === "back" ? lib_1.colors.red : CORNER_DARK },
|
|
130
|
+
]}>
|
|
131
|
+
<common_1.Icon5 name={icon} size={14} color="white" style={styles.cornerIcon}/>
|
|
132
|
+
<common_1.MyText fsize="sm" weight={700} color="white" numberOfLines={1} style={styles.cornerText}>
|
|
133
|
+
{label}
|
|
134
|
+
</common_1.MyText>
|
|
135
|
+
</common_1.PressAnimatedWrap>);
|
|
136
|
+
exports.CornerButton = CornerButton;
|
|
137
|
+
// 最後に開いたLESSON・図をもう一度開く右下のボタン。まだ何も開いていなければ出さない。
|
|
138
|
+
// LESSONは前に見ていたページと位置に戻す
|
|
139
|
+
const ReopenButton = () => {
|
|
140
|
+
const { t } = (0, common_1.useDrillTranslation)();
|
|
141
|
+
const ref = (0, exports.useRefLink)();
|
|
142
|
+
if (!(ref === null || ref === void 0 ? void 0 : ref.last))
|
|
143
|
+
return null;
|
|
144
|
+
const { last } = ref;
|
|
145
|
+
if (last.kind === "lesson") {
|
|
146
|
+
const anchor = ref.lessonOf(last.id);
|
|
147
|
+
if (!anchor)
|
|
148
|
+
return null;
|
|
149
|
+
return (<exports.CornerButton icon="book" label={`LESSON:${anchor.title}`} tone="reopen" onPress={() => ref.openLesson(last.id, true)}/>);
|
|
150
|
+
}
|
|
151
|
+
return (<exports.CornerButton icon="image" label={`${t("article.figLabel")}:${ref.nameOf(last.name)}`} tone="reopen" onPress={() => ref.openFig(last.name)}/>);
|
|
152
|
+
};
|
|
153
|
+
exports.ReopenButton = ReopenButton;
|
|
154
|
+
const styles = react_native_1.StyleSheet.create({
|
|
155
|
+
chipIcon: {
|
|
156
|
+
backgroundColor: LINK_NAVY,
|
|
157
|
+
textDecorationLine: "none",
|
|
158
|
+
},
|
|
159
|
+
chipText: {
|
|
160
|
+
color: LINK_NAVY,
|
|
161
|
+
textDecorationLine: "underline",
|
|
162
|
+
textDecorationColor: LINK_NAVY_LINE,
|
|
163
|
+
},
|
|
164
|
+
corner: {
|
|
165
|
+
flexDirection: "row",
|
|
166
|
+
alignItems: "center",
|
|
167
|
+
alignSelf: "flex-end",
|
|
168
|
+
maxWidth: 300,
|
|
169
|
+
paddingVertical: 11,
|
|
170
|
+
paddingHorizontal: 16,
|
|
171
|
+
borderRadius: 26,
|
|
172
|
+
shadowColor: "#000",
|
|
173
|
+
shadowOpacity: 0.18,
|
|
174
|
+
shadowRadius: 6,
|
|
175
|
+
shadowOffset: { width: 0, height: 2 },
|
|
176
|
+
elevation: 4,
|
|
177
|
+
},
|
|
178
|
+
cornerIcon: {
|
|
179
|
+
marginRight: 8,
|
|
180
|
+
},
|
|
181
|
+
cornerText: {
|
|
182
|
+
flexShrink: 1,
|
|
183
|
+
},
|
|
184
|
+
});
|