From 7d189a2c3253f35fd2d3ca41f1ea8d96a27523a0 Mon Sep 17 00:00:00 2001 From: Satish Ravi Date: Fri, 25 Oct 2024 14:38:58 -0700 Subject: [PATCH 1/2] fix(settings): use the custom Switch component --- src/components/SettingsItem.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/SettingsItem.tsx b/src/components/SettingsItem.tsx index e3863d8532..2190195e59 100644 --- a/src/components/SettingsItem.tsx +++ b/src/components/SettingsItem.tsx @@ -1,6 +1,7 @@ import * as React from 'react' -import { StyleSheet, Switch, Text, View } from 'react-native' +import { StyleSheet, Text, View } from 'react-native' import ListItem from 'src/components/ListItem' +import Switch from 'src/components/Switch' import TextInput from 'src/components/TextInput' import ForwardChevron from 'src/icons/ForwardChevron' import OpenLinkIcon from 'src/icons/OpenLinkIcon' From 6227ecc4e36f620ca382c1c559a7b5e2afaf0266 Mon Sep 17 00:00:00 2001 From: Satish Ravi Date: Fri, 25 Oct 2024 15:34:00 -0700 Subject: [PATCH 2/2] fix snapshot --- src/components/__snapshots__/SettingsItem.test.tsx.snap | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/__snapshots__/SettingsItem.test.tsx.snap b/src/components/__snapshots__/SettingsItem.test.tsx.snap index 335509eb6a..ad52b473c8 100644 --- a/src/components/__snapshots__/SettingsItem.test.tsx.snap +++ b/src/components/__snapshots__/SettingsItem.test.tsx.snap @@ -165,6 +165,10 @@ exports[`SettingsItemSwitch renders correctly 1`] = ` onChange={[Function]} onResponderTerminationRequest={[Function]} onStartShouldSetResponder={[Function]} + thumbTintColor="#E6E6E6" + trackColorForFalse="#757575" + trackColorForTrue="#1AB775" + trackTintColor="#1AB775" />