Skip to content

Commit

Permalink
fix: merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Nov 23, 2024
1 parent 233e340 commit 3e601f0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/react-native-ui/src/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { type API_IndexHash, type Args, type StoryContext } from '@storybook/cor
import type { ReactRenderer } from '@storybook/react';
import { styled, useTheme } from '@storybook/react-native-theming';
import { ReactNode, useRef, useState } from 'react';
import { Platform, ScrollView, Text, TouchableOpacity, View } from 'react-native';
import { ScrollView, Text, TouchableOpacity, View } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { IconButton } from './IconButton';
import { useLayout } from './LayoutProvider';
Expand Down Expand Up @@ -189,6 +189,7 @@ export const Layout = ({
<DarkLogo height={25} width={125} />
)}
</View>

<Sidebar
extra={[]}
previewInitialized
Expand All @@ -207,7 +208,8 @@ export const Layout = ({
</MobileMenuDrawer>

<MobileAddonsPanel ref={addonPanelRef} storyId={story?.id} />
{!uiHidden && (Platform.OS !== 'android' || (!menuOpen && !drawerOpen)) && (

{!uiHidden ? (
<Container style={{ marginBottom: insets.bottom }}>
<Nav>
<Button
Expand All @@ -229,7 +231,7 @@ export const Layout = ({
/>
</Nav>
</Container>
)}
) : null}
</View>
);
};
Expand Down

0 comments on commit 3e601f0

Please sign in to comment.