File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ const DisplayPrefsView = (): React.ReactElement => {
118118 title = 'Avatars'
119119 testID = 'display-pref-view-avatars'
120120 right = { ( ) => renderAvatarSwitch ( showAvatar ) }
121+ onPress = { toggleAvatar }
121122 additionalAccessibilityLabel = { showAvatar }
122123 accessibilityRole = 'switch'
123124 />
Original file line number Diff line number Diff line change @@ -95,14 +95,18 @@ const SecurityPrivacyView = ({ navigation }: ISecurityPrivacyViewProps): JSX.Ele
9595 title = 'Log_analytics_events'
9696 testID = 'security-privacy-view-analytics-events'
9797 right = { ( ) => < Switch value = { analyticsEventsState } onValueChange = { toggleAnalyticsEvents } /> }
98+ onPress = { ( ) => toggleAnalyticsEvents ( ! analyticsEventsState ) }
9899 additionalAccessibilityLabel = { analyticsEventsState }
100+ accessibilityRole = 'switch'
99101 />
100102 < List . Separator />
101103 < List . Item
102104 title = 'Send_crash_report'
103105 testID = 'security-privacy-view-crash-report'
104106 right = { ( ) => < Switch value = { crashReportState } onValueChange = { toggleCrashReport } /> }
105- additionalAccessibilityLabel = { analyticsEventsState }
107+ onPress = { ( ) => toggleCrashReport ( ! crashReportState ) }
108+ additionalAccessibilityLabel = { crashReportState }
109+ accessibilityRole = 'switch'
106110 />
107111 < List . Separator />
108112 < List . Info info = 'Crash_report_disclaimer' />
You can’t perform that action at this time.
0 commit comments