Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add advanced password settings to mobile app and slider component (#883)

Leendert de Borste10a37328a61
diff --git a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
index 0dab6e116..d8422c5e4 100644
--- a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
+++ b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
@@ -10,7 +10,7 @@ import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view
import Toast from 'react-native-toast-message';
import { CreateIdentityGenerator, IdentityGenerator, IdentityHelperUtils } from '@/utils/dist/shared/identity-generator';
-import type { Attachment, Credential } from '@/utils/dist/shared/models/vault';
+import type { Attachment, Credential, PasswordSettings } from '@/utils/dist/shared/models/vault';
import type { FaviconExtractModel } from '@/utils/dist/shared/models/webapi';
import { CreatePasswordGenerator, PasswordGenerator } from '@/utils/dist/shared/password-generator';
import emitter from '@/utils/EventEmitter';
@@ -21,6 +21,7 @@ import { useColors } from '@/hooks/useColorScheme';
import { useVaultMutate } from '@/hooks/useVaultMutate';
import { AttachmentUploader } from '@/components/credentials/details/AttachmentUploader';
+import { AdvancedPasswordField } from '@/components/form/AdvancedPasswordField';
import { ValidatedFormField, ValidatedFormFieldRef } from '@/components/form/ValidatedFormField';
import LoadingOverlay from '@/components/LoadingOverlay';
import { ThemedContainer } from '@/components/themed/ThemedContainer';
@@ -51,6 +52,7 @@ export default function AddEditCredentialScreen() : React.ReactNode {
const [isSaveDisabled, setIsSaveDisabled] = useState(false);
const [attachments, setAttachments] = useState<Attachment[]>([]);
const [originalAttachmentIds, setOriginalAttachmentIds] = useState<string[]>([]);
+ const [passwordSettings, setPasswordSettings] = useState<PasswordSettings | null>(null);
const { t } = useTranslation();
const { control, handleSubmit, setValue, watch } = useForm<Credential>({
@@ -113,35 +115,50 @@ export default function AddEditCredentialScreen() : React.ReactNode {
* if we're in add mode and the service URL is provided (by native autofill component).
*/
useEffect(() => {
- if (authContext.isOffline) {
- // Show toast and close the modal
- setTimeout(() => {
- Toast.show({
- type: 'error',
- text1: t('credentials.offlineMessage'),
- position: 'bottom'
- });
- }, 100);
- router.dismiss();
- return;
- }
+ /**
+ * Initialize the component by loading settings and handling initial state.
+ */
+ const initializeComponent = async (): Promise<void> => {
+ if (authContext.isOffline) {
+ // Show toast and close the modal
+ setTimeout(() => {
+ Toast.show({
+ type: 'error',
+ text1: t('credentials.offlineMessage'),
+ position: 'bottom'
+ });
+ }, 100);
+ router.dismiss();
+ return;
+ }
- if (isEditMode) {
- loadExistingCredential();
- } else if (serviceUrl) {
- const decodedUrl = decodeURIComponent(serviceUrl);
- const serviceName = extractServiceNameFromUrl(decodedUrl);
- setValue('ServiceUrl', decodedUrl);
- setValue('ServiceName', serviceName);
- }
+ // Load password settings
+ try {
+ const settings = await dbContext.sqliteClient!.getPasswordSettings();
+ setPasswordSettings(settings);
+ } catch (err) {
+ console.error('Error loading password settings:', err);
+ }
- // On create mode, focus the service name field after a short delay to ensure the component is mounted
- if (!isEditMode) {
- setTimeout(() => {
- serviceNameRef.current?.focus();
- }, 100);
- }
- }, [id, isEditMode, serviceUrl, loadExistingCredential, setValue, authContext.isOffline, router, t]);
+ if (isEditMode) {
+ loadExistingCredential();
+ } else if (serviceUrl) {
+ const decodedUrl = decodeURIComponent(serviceUrl);
+ const serviceName = extractServiceNameFromUrl(decodedUrl);
+ setValue('ServiceUrl', decodedUrl);
+ setValue('ServiceName', serviceName);
+ }
+
+ // On create mode, focus the service name field after a short delay to ensure the component is mounted
+ if (!isEditMode) {
+ setTimeout(() => {
+ serviceNameRef.current?.focus();
+ }, 100);
+ }
+ };
+
+ initializeComponent();
+ }, [id, isEditMode, serviceUrl, loadExistingCredential, setValue, authContext.isOffline, router, t, dbContext.sqliteClient]);
/**
* Initialize the identity and password generators with settings from user's vault.
@@ -648,25 +665,36 @@ export default function AddEditCredentialScreen() : React.ReactNode {
}
]}
/>
- <ValidatedFormField
- control={control}
- name="Password"
- label={t('credentials.password')}
- secureTextEntry={!isPasswordVisible}
- buttons={[
- {
- icon: isPasswordVisible ? "visibility-off" : "visibility",
- /**
- * Toggle the visibility of the password.
- */
- onPress: () => setIsPasswordVisible(!isPasswordVisible)
- },
- {
- icon: "refresh",
- onPress: generateRandomPassword
- }
- ]}
- />
+ {passwordSettings ? (
+ <AdvancedPasswordField
+ control={control}
+ name="Password"
+ label={t('credentials.password')}
+ initialSettings={passwordSettings}
+ showPassword={isPasswordVisible}
+ onShowPasswordChange={setIsPasswordVisible}
+ />
+ ) : (
+ <ValidatedFormField
+ control={control}
+ name="Password"
+ label={t('credentials.password')}
+ secureTextEntry={!isPasswordVisible}
+ buttons={[
+ {
+ icon: isPasswordVisible ? "visibility-off" : "visibility",
+ /**
+ * Toggle the visibility of the password.
+ */
+ onPress: () => setIsPasswordVisible(!isPasswordVisible)
+ },
+ {
+ icon: "refresh",
+ onPress: generateRandomPassword
+ }
+ ]}
+ />
+ )}
</View>
<View style={styles.section}>
diff --git a/apps/mobile-app/components/form/AdvancedPasswordField.tsx b/apps/mobile-app/components/form/AdvancedPasswordField.tsx
new file mode 100644
index 000000000..33e962d45
--- /dev/null
+++ b/apps/mobile-app/components/form/AdvancedPasswordField.tsx
@@ -0,0 +1,531 @@
+import { MaterialIcons } from '@expo/vector-icons';
+import Slider from '@react-native-community/slider';
+import React, { forwardRef, useImperativeHandle, useRef, useState, useCallback, useEffect } from 'react';
+import { Controller, Control, FieldValues, Path } from 'react-hook-form';
+import { View, TextInput, TextInputProps, StyleSheet, TouchableHighlight, Platform, Modal, ScrollView, Switch, TouchableOpacity } from 'react-native';
+
+import type { PasswordSettings } from '@/utils/dist/shared/models/vault';
+import { CreatePasswordGenerator } from '@/utils/dist/shared/password-generator';
+
+import { useColors } from '@/hooks/useColorScheme';
+
+import { ThemedText } from '@/components/themed/ThemedText';
+
+export type AdvancedPasswordFieldRef = {
+ focus: () => void;
+ selectAll: () => void;
+};
+
+type AdvancedPasswordFieldProps<T extends FieldValues> = Omit<TextInputProps, 'value' | 'onChangeText'> & {
+ label: string;
+ name: Path<T>;
+ control: Control<T>;
+ required?: boolean;
+ initialSettings: PasswordSettings;
+ showPassword?: boolean;
+ onShowPasswordChange?: (show: boolean) => void;
+}
+
+/**
+ * Advanced password field component with inline length slider and settings modal.
+ */
+const AdvancedPasswordFieldComponent = forwardRef<AdvancedPasswordFieldRef, AdvancedPasswordFieldProps<FieldValues>>(({
+ label,
+ name,
+ control,
+ required,
+ initialSettings,
+ showPassword: controlledShowPassword,
+ onShowPasswordChange,
+ ...props
+}, ref) => {
+ const colors = useColors();
+ const inputRef = React.useRef<TextInput>(null);
+ const currentValue = useRef<string>('');
+ const [isFocused, setIsFocused] = React.useState(false);
+ const [internalShowPassword, setInternalShowPassword] = useState(false);
+ const [showSettingsModal, setShowSettingsModal] = useState(false);
+ const [currentSettings, setCurrentSettings] = useState<PasswordSettings>(initialSettings);
+ const [previewPassword, setPreviewPassword] = useState<string>('');
+
+ // Use controlled or uncontrolled showPassword state
+ const showPassword = controlledShowPassword ?? internalShowPassword;
+
+ /**
+ * Set the showPassword state.
+ */
+ const setShowPasswordState = useCallback((show: boolean): void => {
+ if (controlledShowPassword !== undefined) {
+ onShowPasswordChange?.(show);
+ } else {
+ setInternalShowPassword(show);
+ }
+ }, [controlledShowPassword, onShowPasswordChange]);
+
+ /**
+ * Expose focus and selectAll methods through ref.
+ */
+ useImperativeHandle(ref, () => ({
+ /**
+ * Focus the input field.
+ */
+ focus: (): void => {
+ inputRef.current?.focus();
+ },
+ /**
+ * Select all text in the input field.
+ */
+ selectAll: (): void => {
+ inputRef.current?.setSelection(0, currentValue.current.length);
+ }
+ }));
+
+ /**
+ * Initialize settings when initialSettings change.
+ */
+ useEffect(() => {
+ setCurrentSettings({ ...initialSettings });
+ }, [initialSettings]);
+
+ /**
+ * Generate a password with the given settings.
+ */
+ const generatePassword = useCallback((settings: PasswordSettings, onChange: (value: string) => void) => {
+ try {
+ const passwordGenerator = CreatePasswordGenerator(settings);
+ const password = passwordGenerator.generateRandomPassword();
+ onChange(password);
+ setShowPasswordState(true);
+ return password;
+ } catch (error) {
+ console.error('Error generating password:', error);
+ return '';
+ }
+ }, [setShowPasswordState]);
+
+ /**
+ * Generate a preview password for the settings modal.
+ */
+ const generatePreview = useCallback((settings: PasswordSettings) => {
+ try {
+ const passwordGenerator = CreatePasswordGenerator(settings);
+ const password = passwordGenerator.generateRandomPassword();
+ setPreviewPassword(password);
+ } catch (error) {
+ console.error('Error generating preview password:', error);
+ setPreviewPassword('');
+ }
+ }, []);
+
+ /**
+ * Handle password length change via slider.
+ */
+ const handleLengthChange = useCallback((newLength: number, onChange: (value: string) => void) => {
+ const roundedLength = Math.round(newLength);
+ const newSettings = { ...currentSettings, Length: roundedLength };
+ setCurrentSettings(newSettings);
+ generatePassword(newSettings, onChange);
+ }, [currentSettings, generatePassword]);
+
+ /**
+ * Handle password setting toggle changes.
+ */
+ const handleSettingChange = useCallback((key: keyof PasswordSettings, value: boolean | number) => {
+ const newSettings = { ...currentSettings, [key]: value };
+ setCurrentSettings(newSettings);
+ /*
+ * Don't auto-generate preview to avoid modal flickering.
+ * User can use the refresh button to see changes.
+ */
+ }, [currentSettings]);
+
+ /**
+ * Handle opening the settings modal.
+ */
+ const handleOpenSettings = useCallback(() => {
+ // Generate initial preview when modal opens
+ generatePreview(currentSettings);
+ setShowSettingsModal(true);
+ }, [currentSettings, generatePreview]);
+
+ /**
+ * Handle refreshing the preview password in the modal.
+ */
+ const handleRefreshPreview = useCallback(() => {
+ generatePreview(currentSettings);
+ }, [currentSettings, generatePreview]);
+
+ /**
+ * Handle using the generated password from the modal.
+ */
+ const handleUsePassword = useCallback((onChange: (value: string) => void) => {
+ onChange(previewPassword);
+ setShowPasswordState(true);
+ setShowSettingsModal(false);
+ }, [previewPassword, setShowPasswordState]);
+
+ const colorRed = 'red';
+ const modalBackgroundColor = 'rgba(0, 0, 0, 0.5)';
+
+ const styles = StyleSheet.create({
+ button: {
+ borderLeftColor: colors.accentBorder,
+ borderLeftWidth: 1,
+ padding: 10,
+ },
+ clearButton: {
+ borderRadius: 6,
+ marginRight: 4,
+ padding: 6,
+ },
+ closeButton: {
+ padding: 4,
+ },
+ errorText: {
+ color: colorRed,
+ fontSize: 12,
+ marginTop: 4,
+ },
+ input: {
+ color: colors.text,
+ flex: 1,
+ fontSize: 16,
+ marginRight: 5,
+ padding: 10,
+ },
+ inputContainer: {
+ alignItems: 'center',
+ backgroundColor: colors.background,
+ borderColor: colors.accentBorder,
+ borderRadius: 6,
+ borderWidth: 1,
+ flexDirection: 'row',
+ },
+ inputError: {
+ borderColor: colorRed,
+ },
+ inputGroup: {
+ marginBottom: 6,
+ },
+ inputLabel: {
+ color: colors.textMuted,
+ fontSize: 12,
+ marginBottom: 4,
+ },
+ modalContent: {
+ backgroundColor: colors.background,
+ borderRadius: 12,
+ maxHeight: '80%',
+ maxWidth: 400,
+ padding: 20,
+ width: '90%',
+ },
+ modalHeader: {
+ alignItems: 'center',
+ flexDirection: 'row',
+ justifyContent: 'space-between',
+ marginBottom: 20,
+ },
+ modalOverlay: {
+ alignItems: 'center',
+ backgroundColor: modalBackgroundColor,
+ flex: 1,
+ justifyContent: 'center',
+ },
+ modalTitle: {
+ color: colors.text,
+ fontSize: 18,
+ fontWeight: '600',
+ },
+ previewContainer: {
+ marginBottom: 20,
+ },
+ previewInput: {
+ backgroundColor: colors.accentBackground,
+ borderColor: colors.accentBorder,
+ borderRadius: 6,
+ borderWidth: 1,
+ color: colors.text,
+ fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace',
+ fontSize: 14,
+ padding: 12,
+ textAlign: 'center',
+ },
+ refreshButton: {
+ alignItems: 'center',
+ backgroundColor: colors.primary,
+ borderRadius: 6,
+ marginTop: 8,
+ padding: 10,
+ },
+ refreshButtonText: {
+ color: colors.primarySurfaceText,
+ fontSize: 14,
+ fontWeight: '600',
+ },
+ requiredIndicator: {
+ color: colorRed,
+ marginLeft: 4,
+ },
+ settingItem: {
+ alignItems: 'center',
+ flexDirection: 'row',
+ justifyContent: 'space-between',
+ paddingVertical: 8,
+ },
+ settingLabel: {
+ color: colors.text,
+ fontSize: 14,
+ },
+ settingsButton: {
+ marginLeft: 8,
+ padding: 4,
+ },
+ settingsSection: {
+ marginBottom: 20,
+ },
+ slider: {
+ height: 40,
+ width: '100%',
+ },
+ sliderContainer: {
+ marginTop: 8,
+ paddingHorizontal: 4,
+ },
+ sliderHeader: {
+ alignItems: 'center',
+ flexDirection: 'row',
+ justifyContent: 'space-between',
+ marginBottom: 8,
+ },
+ sliderLabel: {
+ color: colors.textMuted,
+ fontSize: 12,
+ },
+ sliderValue: {
+ color: colors.text,
+ fontFamily: Platform.OS === 'ios' ? 'Courier' : 'monospace',
+ fontSize: 12,
+ fontWeight: '600',
+ },
+ sliderValueContainer: {
+ alignItems: 'center',
+ flexDirection: 'row',
+ },
+ useButton: {
+ alignItems: 'center',
+ backgroundColor: colors.primary,
+ borderRadius: 6,
+ padding: 12,
+ },
+ useButtonText: {
+ color: colors.primarySurfaceText,
+ fontSize: 16,
+ fontWeight: '600',
+ },
+ });
+
+ /**
+ * Settings modal component for advanced password configuration.
+ */
+ const SettingsModal = ({ onChange }: { onChange: (value: string) => void }): React.ReactElement => (
+ <Modal
+ visible={showSettingsModal}
+ transparent
+ animationType="fade"
+ onRequestClose={() => setShowSettingsModal(false)}
+ >
+ <View style={styles.modalOverlay}>
+ <View style={styles.modalContent}>
+ <View style={styles.modalHeader}>
+ <ThemedText style={styles.modalTitle}>Password Settings</ThemedText>
+ <TouchableOpacity
+ style={styles.closeButton}
+ onPress={() => setShowSettingsModal(false)}
+ >
+ <MaterialIcons name="close" size={24} color={colors.textMuted} />
+ </TouchableOpacity>
+ </View>
+
+ <ScrollView showsVerticalScrollIndicator={false}>
+ <View style={styles.previewContainer}>
+ <TextInput
+ style={styles.previewInput}
+ value={previewPassword}
+ editable={false}
+ />
+ <TouchableOpacity
+ style={styles.refreshButton}
+ onPress={handleRefreshPreview}
+ >
+ <ThemedText style={styles.refreshButtonText}>Generate New</ThemedText>
+ </TouchableOpacity>
+ </View>
+
+ <View style={styles.settingsSection}>
+ <View style={styles.settingItem}>
+ <ThemedText style={styles.settingLabel}>Lowercase (a-z)</ThemedText>
+ <Switch
+ value={currentSettings.UseLowercase}
+ onValueChange={(value) => handleSettingChange('UseLowercase', value)}
+ trackColor={{ false: colors.accentBorder, true: colors.primary }}
+ thumbColor={Platform.OS === 'android' ? colors.background : undefined}
+ />
+ </View>
+
+ <View style={styles.settingItem}>
+ <ThemedText style={styles.settingLabel}>Uppercase (A-Z)</ThemedText>
+ <Switch
+ value={currentSettings.UseUppercase}
+ onValueChange={(value) => handleSettingChange('UseUppercase', value)}
+ trackColor={{ false: colors.accentBorder, true: colors.primary }}
+ thumbColor={Platform.OS === 'android' ? colors.background : undefined}
+ />
+ </View>
+
+ <View style={styles.settingItem}>
+ <ThemedText style={styles.settingLabel}>Numbers (0-9)</ThemedText>
+ <Switch
+ value={currentSettings.UseNumbers}
+ onValueChange={(value) => handleSettingChange('UseNumbers', value)}
+ trackColor={{ false: colors.accentBorder, true: colors.primary }}
+ thumbColor={Platform.OS === 'android' ? colors.background : undefined}
+ />
+ </View>
+
+ <View style={styles.settingItem}>
+ <ThemedText style={styles.settingLabel}>Special Characters (!@#)</ThemedText>
+ <Switch
+ value={currentSettings.UseSpecialChars}
+ onValueChange={(value) => handleSettingChange('UseSpecialChars', value)}
+ trackColor={{ false: colors.accentBorder, true: colors.primary }}
+ thumbColor={Platform.OS === 'android' ? colors.background : undefined}
+ />
+ </View>
+
+ <View style={styles.settingItem}>
+ <ThemedText style={styles.settingLabel}>Avoid Ambiguous Characters</ThemedText>
+ <Switch
+ value={currentSettings.UseNonAmbiguousChars}
+ onValueChange={(value) => handleSettingChange('UseNonAmbiguousChars', value)}
+ trackColor={{ false: colors.accentBorder, true: colors.primary }}
+ thumbColor={Platform.OS === 'android' ? colors.background : undefined}
+ />
+ </View>
+ </View>
+
+ <TouchableOpacity
+ style={styles.useButton}
+ onPress={() => handleUsePassword(onChange)}
+ >
+ <ThemedText style={styles.useButtonText}>Use This Password</ThemedText>
+ </TouchableOpacity>
+ </ScrollView>
+ </View>
+ </View>
+ </Modal>
+ );
+
+ return (
+ <Controller
+ control={control}
+ name={name}
+ render={({ field: { onChange, value }, fieldState: { error } }) => {
+ currentValue.current = value as string;
+ const showClearButton = Platform.OS === 'android' && value && value.length > 0 && isFocused;
+
+ return (
+ <View style={styles.inputGroup}>
+ <ThemedText style={styles.inputLabel}>
+ {label} {required && <ThemedText style={styles.requiredIndicator}>*</ThemedText>}
+ </ThemedText>
+
+ <View style={[styles.inputContainer, error ? styles.inputError : null]}>
+ <TextInput
+ ref={inputRef}
+ style={styles.input}
+ value={value as string}
+ placeholderTextColor={colors.textMuted}
+ onChangeText={onChange}
+ autoCapitalize="none"
+ autoComplete="off"
+ autoCorrect={false}
+ clearButtonMode={Platform.OS === 'ios' ? "while-editing" : "never"}
+ onFocus={() => setIsFocused(true)}
+ onBlur={() => setIsFocused(false)}
+ secureTextEntry={!showPassword}
+ {...props}
+ />
+
+ {showClearButton && (
+ <TouchableHighlight
+ style={styles.clearButton}
+ onPress={() => onChange('')}
+ underlayColor={colors.accentBackground}
+ >
+ <MaterialIcons name="close" size={16} color={colors.textMuted} />
+ </TouchableHighlight>
+ )}
+
+ <TouchableHighlight
+ style={styles.button}
+ onPress={() => setShowPasswordState(!showPassword)}
+ underlayColor={colors.accentBackground}
+ >
+ <MaterialIcons
+ name={showPassword ? "visibility-off" : "visibility"}
+ size={20}
+ color={colors.primary}
+ />
+ </TouchableHighlight>
+
+ <TouchableHighlight
+ style={styles.button}
+ onPress={() => generatePassword(currentSettings, onChange)}
+ underlayColor={colors.accentBackground}
+ >
+ <MaterialIcons name="refresh" size={20} color={colors.primary} />
+ </TouchableHighlight>
+ </View>
+
+ {/* Inline Password Length Slider */}
+ <View style={styles.sliderContainer}>
+ <View style={styles.sliderHeader}>
+ <ThemedText style={styles.sliderLabel}>Password Length</ThemedText>
+ <View style={styles.sliderValueContainer}>
+ <ThemedText style={styles.sliderValue}>{currentSettings.Length}</ThemedText>
+ <TouchableOpacity
+ style={styles.settingsButton}
+ onPress={handleOpenSettings}
+ >
+ <MaterialIcons name="settings" size={20} color={colors.primary} />
+ </TouchableOpacity>
+ </View>
+ </View>
+
+ <Slider
+ style={styles.slider}
+ minimumValue={8}
+ maximumValue={64}
+ value={currentSettings.Length}
+ onValueChange={(value) => handleLengthChange(value, onChange)}
+ step={1}
+ minimumTrackTintColor={colors.primary}
+ maximumTrackTintColor={colors.accentBorder}
+ thumbTintColor={colors.primary}
+ />
+ </View>
+
+ {error && <ThemedText style={styles.errorText}>{error.message}</ThemedText>}
+
+ <SettingsModal onChange={onChange} />
+ </View>
+ );
+ }}
+ />
+ );
+});
+
+AdvancedPasswordFieldComponent.displayName = 'AdvancedPasswordField';
+
+export const AdvancedPasswordField = AdvancedPasswordFieldComponent as <T extends FieldValues>(props: AdvancedPasswordFieldProps<T> & { ref?: React.Ref<AdvancedPasswordFieldRef> }) => JSX.Element;
\ No newline at end of file
diff --git a/apps/mobile-app/ios/Podfile.lock b/apps/mobile-app/ios/Podfile.lock
index bb12db38f..08e567507 100644
--- a/apps/mobile-app/ios/Podfile.lock
+++ b/apps/mobile-app/ios/Podfile.lock
@@ -1662,6 +1662,49 @@ PODS:
- ReactCommon/turbomodule/bridging
- ReactCommon/turbomodule/core
- Yoga
+ - react-native-slider (4.5.7):
+ - DoubleConversion
+ - glog
+ - hermes-engine
+ - RCT-Folly (= 2024.10.14.00)
+ - RCTRequired
+ - RCTTypeSafety
+ - React-Core
+ - React-debug
+ - React-Fabric
+ - React-featureflags
+ - React-graphics
+ - React-ImageManager
+ - react-native-slider/common (= 4.5.7)
+ - React-NativeModulesApple
+ - React-RCTFabric
+ - React-rendererdebug
+ - React-utils
+ - ReactCodegen
+ - ReactCommon/turbomodule/bridging
+ - ReactCommon/turbomodule/core
+ - Yoga
+ - react-native-slider/common (4.5.7):
+ - DoubleConversion
+ - glog
+ - hermes-engine
+ - RCT-Folly (= 2024.10.14.00)
+ - RCTRequired
+ - RCTTypeSafety
+ - React-Core
+ - React-debug
+ - React-Fabric
+ - React-featureflags
+ - React-graphics
+ - React-ImageManager
+ - React-NativeModulesApple
+ - React-RCTFabric
+ - React-rendererdebug
+ - React-utils
+ - ReactCodegen
+ - ReactCommon/turbomodule/bridging
+ - ReactCommon/turbomodule/core
+ - Yoga
- react-native-webview (13.12.5):
- DoubleConversion
- glog
@@ -2257,6 +2300,7 @@ DEPENDENCIES:
- react-native-get-random-values (from `../node_modules/react-native-get-random-values`)
- react-native-quick-crypto (from `../node_modules/react-native-quick-crypto`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
+ - "react-native-slider (from `../node_modules/@react-native-community/slider`)"
- react-native-webview (from `../node_modules/react-native-webview`)
- React-nativeconfig (from `../node_modules/react-native/ReactCommon`)
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
@@ -2447,6 +2491,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-quick-crypto"
react-native-safe-area-context:
:path: "../node_modules/react-native-safe-area-context"
+ react-native-slider:
+ :path: "../node_modules/@react-native-community/slider"
react-native-webview:
:path: "../node_modules/react-native-webview"
React-nativeconfig:
@@ -2592,6 +2638,7 @@ SPEC CHECKSUMS:
react-native-get-random-values: d16467cf726c618e9c7a8c3c39c31faa2244bbba
react-native-quick-crypto: 361ecda861e23138ce68fea4b820cbc058688fb5
react-native-safe-area-context: cd916088cac5300c3266876218377518987b995e
+ react-native-slider: 18a34929dbeb86db5375b56ef28551299a3fa89c
react-native-webview: 6b9fc65c1951203a3e958ff3cc0a858d4b6be901
React-nativeconfig: 8efdb1ef1e9158c77098a93085438f7e7b463678
React-NativeModulesApple: cebca2e5320a3d66e123cade23bd90a167ffce5e
diff --git a/apps/mobile-app/package-lock.json b/apps/mobile-app/package-lock.json
index 38eb51af4..59077826c 100644
--- a/apps/mobile-app/package-lock.json
+++ b/apps/mobile-app/package-lock.json
@@ -11,6 +11,7 @@
"@expo/vector-icons": "~14.0.4",
"@hookform/resolvers": "^5.0.1",
"@react-native-async-storage/async-storage": "1.23.1",
+ "@react-native-community/slider": "^4.5.7",
"@react-navigation/bottom-tabs": "^7.2.0",
"@react-navigation/native": "^7.0.14",
"@types/jsrsasign": "^10.5.15",
@@ -5335,6 +5336,12 @@
"devOptional": true,
"license": "ISC"
},
+ "node_modules/@react-native-community/slider": {
+ "version": "4.5.7",
+ "resolved": "https://registry.npmjs.org/@react-native-community/slider/-/slider-4.5.7.tgz",
+ "integrity": "sha512-WMDDZjNF2Bd8M8TrSqKf5xhM9ikdfCHtSPur64Ow3bB/OVrKufUQZ59NmYdNZNeGPvcHHTsafuYTY8zfZfbchQ==",
+ "license": "MIT"
+ },
"node_modules/@react-native/assets-registry": {
"version": "0.76.9",
"resolved": "https://registry.npmjs.org/@react-native/assets-registry/-/assets-registry-0.76.9.tgz",
diff --git a/apps/mobile-app/package.json b/apps/mobile-app/package.json
index 40705baa2..f4127a4de 100644
--- a/apps/mobile-app/package.json
+++ b/apps/mobile-app/package.json
@@ -32,6 +32,7 @@
"@expo/vector-icons": "~14.0.4",
"@hookform/resolvers": "^5.0.1",
"@react-native-async-storage/async-storage": "1.23.1",
+ "@react-native-community/slider": "^4.5.7",
"@react-navigation/bottom-tabs": "^7.2.0",
"@react-navigation/native": "^7.0.14",
"@types/jsrsasign": "^10.5.15",