From c76d2996aa994714427fc1cf0b7578fa9b935b16 Mon Sep 17 00:00:00 2001 From: harukin-expo-dev-env Date: Wed, 27 Mar 2024 12:07:21 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=82=A4=E3=83=83=E3=83=81=E3=81=AE?= =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Settings/LayoutSettings.js | 50 +++++++++++++++++++++------ 1 file changed, 40 insertions(+), 10 deletions(-) diff --git a/components/Settings/LayoutSettings.js b/components/Settings/LayoutSettings.js index 9bdd2ae..b5e4724 100644 --- a/components/Settings/LayoutSettings.js +++ b/components/Settings/LayoutSettings.js @@ -1,6 +1,7 @@ import React from "react"; import { View, Text, TouchableOpacity, ScrollView } from "react-native"; import { SwitchArea } from "../atom/SwitchArea"; +import { CheckBox } from "react-native-elements"; export const LayoutSettings = ({ navigate, @@ -87,11 +88,14 @@ export const LayoutSettings = ({ falseImage={require("../../assets/configuration/station_default.jpg")} trueImage={require("../../assets/configuration/station_original.jpg")} /> - + {stationMenu == "true" && ( + + )} - + {trainMenu == "true" && ( + + )} ); }; + +const SimpleSwitch = ({ bool, setBool, str }) => ( + + setBool(bool == "true" ? "false" : "true")} + /> + + {str} + + +);