Skip to content

Commit

Permalink
Only hide back button in FileDetail on iPad/Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed Sep 13, 2022
1 parent e445997 commit 4fb7d73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/screens/FileDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ const FileDetail: React.FC<

useLayoutEffect(() => {
navigation.setOptions({
headerBackVisible: showMaster,
headerBackVisible:
DeviceInfo.isTablet() || DeviceInfo.isMac() ? showMaster : undefined,
headerBackTitle: t('back'),
headerRight: () => (
<View style={Styles.flexRow}>
Expand Down

0 comments on commit 4fb7d73

Please sign in to comment.