@@ -24,6 +24,7 @@ import {
2424import { useMessageComposer } from '../../contexts/messageInputContext/hooks/useMessageComposer' ;
2525import { useStateStore } from '../../hooks/useStateStore' ;
2626import { primitives } from '../../theme' ;
27+ import { getRtlMirrorSwitchStyle } from '../../utils/rtlMirrorSwitchStyle' ;
2728
2829const pollComposerStateSelector = ( state : PollComposerState ) => ( {
2930 options : state . data . options ,
@@ -171,7 +172,11 @@ export const CreatePollContent = () => {
171172 < Switch
172173 onValueChange = { onAnonymousPollChangeHandler }
173174 value = { isAnonymousPoll }
174- style = { [ styles . optionCardSwitch , anonymousPoll . optionCardSwitch ] }
175+ style = { [
176+ styles . optionCardSwitch ,
177+ getRtlMirrorSwitchStyle ( ) ,
178+ anonymousPoll . optionCardSwitch ,
179+ ] }
175180 />
176181 </ View >
177182 < View style = { [ styles . optionCard , suggestOption . wrapper ] } >
@@ -185,7 +190,11 @@ export const CreatePollContent = () => {
185190 < Switch
186191 onValueChange = { onAllowUserSuggestedOptionsChangeHandler }
187192 value = { allowUserSuggestedOptions }
188- style = { [ styles . optionCardSwitch , suggestOption . optionCardSwitch ] }
193+ style = { [
194+ styles . optionCardSwitch ,
195+ getRtlMirrorSwitchStyle ( ) ,
196+ suggestOption . optionCardSwitch ,
197+ ] }
189198 />
190199 </ View >
191200 < View style = { [ styles . optionCard , addComment . wrapper ] } >
@@ -199,7 +208,11 @@ export const CreatePollContent = () => {
199208 < Switch
200209 onValueChange = { onAllowAnswersChangeHandler }
201210 value = { allowAnswers }
202- style = { [ styles . optionCardSwitch , addComment . optionCardSwitch ] }
211+ style = { [
212+ styles . optionCardSwitch ,
213+ getRtlMirrorSwitchStyle ( ) ,
214+ addComment . optionCardSwitch ,
215+ ] }
203216 />
204217 </ View >
205218 </ Animated . View >
0 commit comments