@@ -48,6 +48,7 @@ export type LimitType = {
4848} ;
4949
5050interface DurationScrollProps {
51+ allowFontScaling ?: boolean ;
5152 numberOfItems : number ;
5253 label ?: string | React . ReactElement ;
5354 initialValue ?: number ;
@@ -83,6 +84,7 @@ const DurationScroll = forwardRef<DurationScrollRef, DurationScrollProps>(
8384 disableInfiniteScroll = false ,
8485 limit,
8586 aggressivelyGetLatestDuration,
87+ allowFontScaling = false ,
8688 is12HourPicker,
8789 amLabel,
8890 pmLabel,
@@ -166,6 +168,7 @@ const DurationScroll = forwardRef<DurationScrollRef, DurationScrollProps>(
166168 style = { styles . pickerItemContainer }
167169 testID = "picker-item" >
168170 < Text
171+ allowFontScaling = { allowFontScaling }
169172 style = { [
170173 styles . pickerItem ,
171174 intItem > adjustedLimited . max ||
@@ -179,7 +182,9 @@ const DurationScroll = forwardRef<DurationScrollRef, DurationScrollProps>(
179182 < View
180183 style = { styles . pickerAmPmContainer }
181184 pointerEvents = "none" >
182- < Text style = { [ styles . pickerAmPmLabel ] } >
185+ < Text
186+ style = { [ styles . pickerAmPmLabel ] }
187+ allowFontScaling = { allowFontScaling } >
183188 { isAm ? amLabel : pmLabel }
184189 </ Text >
185190 </ View >
@@ -190,6 +195,7 @@ const DurationScroll = forwardRef<DurationScrollRef, DurationScrollProps>(
190195 [
191196 adjustedLimited . max ,
192197 adjustedLimited . min ,
198+ allowFontScaling ,
193199 amLabel ,
194200 is12HourPicker ,
195201 pmLabel ,
@@ -364,7 +370,11 @@ const DurationScroll = forwardRef<DurationScrollRef, DurationScrollProps>(
364370 />
365371 < View style = { styles . pickerLabelContainer } pointerEvents = "none" >
366372 { typeof label === "string" ? (
367- < Text style = { styles . pickerLabel } > { label } </ Text >
373+ < Text
374+ allowFontScaling = { allowFontScaling }
375+ style = { styles . pickerLabel } >
376+ { label }
377+ </ Text >
368378 ) : (
369379 label ?? null
370380 ) }
0 commit comments