Skip to content

Commit a6d8310

Browse files
committed
fix(example): use style array for Dynamic Theme drawer row
The Use Dynamic Theme row in the Preferences drawer section had style={(styles.preference, styles.v3Preference)} — a JS comma expression that evaluates to only styles.v3Preference. That dropped the row's flexDirection: 'row' / justifyContent: 'space-between' layout, so the trailing Switch overflowed the drawer on Android. Match the array form used by every other preference row: style={[styles.preference, styles.v3Preference]}.
1 parent ed85b64 commit a6d8310

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

example/src/DrawerItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function DrawerItems() {
183183
<Drawer.Section title="Preferences">
184184
{dynamicThemeSupported ? (
185185
<TouchableRipple onPress={toggleShouldUseDynamicTheme}>
186-
<View style={(styles.preference, styles.v3Preference)}>
186+
<View style={[styles.preference, styles.v3Preference]}>
187187
<Text variant="labelLarge">Use Dynamic Theme</Text>
188188
<View pointerEvents="none">
189189
<Switch value={shouldUseDynamicTheme} />

0 commit comments

Comments
 (0)