Skip to content

Commit 1a7d048

Browse files
protikbiswas100Protik Biswas
andauthored
TouchableWithoutFeedback is getting truncated when text scaling is set 200% (#642)
* adding changes so that narrator and keyboard remains in focus * adding fix TouchableWithoutFeedback truncation issue * Removing comments * removing unnenecessary files * adding accessibilityLabel tags --------- Co-authored-by: Protik Biswas <protikbiswas100@microsoft.com>
1 parent 47227bf commit 1a7d048

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

NewArch/src/App.tsx

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ const styles = StyleSheet.create({
4343
drawer: {
4444
backgroundColor: PlatformColor('NavigationViewDefaultPaneBackground'),
4545
height: '100%',
46+
width: 440, // Increased from default for better label fit
47+
minWidth: 440,
48+
maxWidth: 500,
4649
},
4750
drawerText: {
4851
color: PlatformColor('TextControlForeground'),
@@ -149,9 +152,15 @@ const DrawerListItem = React.forwardRef<Pressable, DrawerListItemProps>(
149152
{icon}
150153
</Text>
151154
</View>
152-
<Text accessible={false} style={styles.drawerText}>
153-
{label}
154-
</Text>
155+
<Text
156+
accessible={false}
157+
style={styles.drawerText}
158+
maxFontSizeMultiplier={1}
159+
numberOfLines={1}
160+
ellipsizeMode="tail"
161+
>
162+
{label}
163+
</Text>
155164
</Pressable>
156165
);
157166
},

0 commit comments

Comments
 (0)