Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: save value on change

ammarahm-ed75e1985a6f25
diff --git a/apps/mobile/app/screens/settings/section-item.tsx b/apps/mobile/app/screens/settings/section-item.tsx
index 6b0cc6fd4..53ac29af8 100644
--- a/apps/mobile/app/screens/settings/section-item.tsx
+++ b/apps/mobile/app/screens/settings/section-item.tsx
@@ -169,6 +169,14 @@ const _SectionItem = ({ item }: { item: SettingSection }) => {
}
item.inputProperties?.onSubmitEditing?.(e);
}}
+ onChangeText={(text) => {
+ if (text) {
+ SettingsService.set({
+ [item.property as string]: text
+ });
+ }
+ item.inputProperties?.onSubmitEditing?.(text as any);
+ }}
containerStyle={{ marginTop: 12 }}
fwdRef={inputRef}
onLayout={() => {