@nakamura-123/pages 1.0.10 → 1.0.12

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.
@@ -77,11 +77,12 @@ var QuizSetup = function (_a) {
77
77
  <QuizOptionDrill_1.default />
78
78
  {system === "JLPT" && (<common_1.RoundRectangleIcon icon="cog" title="Detail Setting" onPress={handleDetail}/>)}
79
79
  {system === "JLPT" && (<common_1.VibrationText>*{t("setup.turnOffSilent")}</common_1.VibrationText>)}
80
- <react_native_1.View style={styles.btnBox}>
81
- <common_1.MiniIconBtn onPress={function () { return handlePreStudy(); }} icon="book" title={t("setup.btn.study")} color="ltBlack"/>
82
- <common_1.MiniIconBtn onPress={function () { return handleStart(); }} icon="play" title={t("setup.btn.start")} color="red"/>
83
- </react_native_1.View>
84
80
  </react_native_gesture_handler_1.ScrollView>
81
+
82
+ <react_native_1.View style={styles.btnBox}>
83
+ <common_1.MiniIconBtn onPress={function () { return handlePreStudy(); }} icon="book" title={t("setup.btn.study")} color="ltBlack"/>
84
+ <common_1.MiniIconBtn onPress={function () { return handleStart(); }} icon="play" title={t("setup.btn.start")} color="red"/>
85
+ </react_native_1.View>
85
86
  </react_native_1.View>);
86
87
  };
87
88
  var styles = react_native_1.StyleSheet.create({
@@ -95,10 +96,10 @@ var styles = react_native_1.StyleSheet.create({
95
96
  flex: 1,
96
97
  },
97
98
  btnBox: {
98
- marginTop: 20,
99
99
  flexDirection: "row",
100
100
  justifyContent: "space-around",
101
101
  alignItems: "center",
102
+ paddingVertical: 5,
102
103
  },
103
104
  });
104
105
  exports.default = QuizSetup;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { StackNavigationProp } from "@react-navigation/stack";
3
+ import { Nav } from "@nakamura-123/types";
4
+ interface MovieBtnProps {
5
+ pathes: number[];
6
+ word: string;
7
+ navigation: StackNavigationProp<Nav.RootStackParamList>;
8
+ index: number;
9
+ }
10
+ declare const MovieBtn: React.FC<MovieBtnProps>;
11
+ export default MovieBtn;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var react_1 = __importDefault(require("react"));
7
+ var react_native_1 = require("react-native");
8
+ var FontAwesome5_1 = __importDefault(require("@expo/vector-icons/FontAwesome5"));
9
+ var lib_1 = require("@nakamura-123/lib");
10
+ var common_1 = require("@nakamura-123/common");
11
+ var ZoomableImage_1 = __importDefault(require("../common/ZoomableImage"));
12
+ var MovieBtn = function (_a) {
13
+ var pathes = _a.pathes, word = _a.word, navigation = _a.navigation, index = _a.index;
14
+ return (<react_native_1.View key={index}>
15
+ <react_native_1.TouchableOpacity style={styles.youtubeButton} onPress={function () { return lib_1.utilFnc.handleSearch(word); }}>
16
+ <react_native_1.View style={styles.iconContainer}>
17
+ <FontAwesome5_1.default name="youtube" size={20} color="#ff0000"/>
18
+ </react_native_1.View>
19
+ <react_native_1.View style={styles.textContainer}>
20
+ <common_1.MyText color="white">公式解説動画を見る</common_1.MyText>
21
+ </react_native_1.View>
22
+ </react_native_1.TouchableOpacity>
23
+ {pathes.map(function (path, j) { return (<ZoomableImage_1.default key={j} path={path} navigation={navigation}/>); })}
24
+ </react_native_1.View>);
25
+ };
26
+ var styles = react_native_1.StyleSheet.create({
27
+ youtubeButton: {
28
+ flexDirection: "row",
29
+ alignItems: "center",
30
+ backgroundColor: lib_1.colors.red,
31
+ paddingHorizontal: 16,
32
+ paddingVertical: 12,
33
+ borderRadius: 8,
34
+ marginTop: 10,
35
+ shadowColor: "#000",
36
+ shadowOffset: {
37
+ width: 0,
38
+ height: 2,
39
+ },
40
+ shadowOpacity: 0.25,
41
+ shadowRadius: 3.84,
42
+ elevation: 5,
43
+ marginBottom: 30,
44
+ },
45
+ iconContainer: {
46
+ width: 30,
47
+ height: 26,
48
+ backgroundColor: "white",
49
+ borderRadius: 4,
50
+ justifyContent: "center",
51
+ alignItems: "center",
52
+ marginRight: 12,
53
+ },
54
+ textContainer: {
55
+ flex: 1,
56
+ justifyContent: "center",
57
+ alignItems: "center",
58
+ paddingRight: 30,
59
+ },
60
+ });
61
+ exports.default = MovieBtn;
@@ -13,6 +13,7 @@ var quizHook_1 = require("../../hooks/quizHook");
13
13
  var ExplainLogic_1 = require("./ExplainLogic");
14
14
  var ZoomableImage_1 = __importDefault(require("../common/ZoomableImage"));
15
15
  var MyTextqqyy_1 = __importDefault(require("../common/MyTextqqyy"));
16
+ var MovieBtn_1 = __importDefault(require("./MovieBtn"));
16
17
  var NormalExplain = function (_a) {
17
18
  var navigation = _a.navigation;
18
19
  var question = (0, quizHook_1.useQuestionDataD)();
@@ -62,10 +63,7 @@ var NormalExplain = function (_a) {
62
63
  }
63
64
  if (I.viewType === "mImg") {
64
65
  var pathes = lib_1.utilFnc.getmImgPathes(mImgs, I.yearId, I.num);
65
- return (<react_native_1.View key={index}>
66
- <common_1.RoundRectangle title="オリジナル解説動画はこちら>>>" onPress={function () { return lib_1.utilFnc.handleSearch(I.word); }} color="red" style={styles.imgRectangle}/>
67
- {pathes.map(function (path, j) { return (<ZoomableImage_1.default key={j} path={path} navigation={navigation}/>); })}
68
- </react_native_1.View>);
66
+ return (<MovieBtn_1.default key={index} pathes={pathes} word={I.word} navigation={navigation} index={index}/>);
69
67
  }
70
68
  })}
71
69
  {formIsInput && (<common_1.MyText fsize="sm" color="red" style={{ alignSelf: "flex-end" }}>