Page MenuHomePhabricator

D6137.id20499.diff
No OneTemporary

D6137.id20499.diff

diff --git a/native/navigation/community-drawer-content.react.js b/native/navigation/community-drawer-content.react.js
--- a/native/navigation/community-drawer-content.react.js
+++ b/native/navigation/community-drawer-content.react.js
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
-import { FlatList } from 'react-native';
+import { FlatList, Platform } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { useSelector } from 'react-redux';
@@ -18,7 +18,6 @@
import CommunityDrawerItemCommunity from './community-drawer-item-cummunity.react';
const maxDepth = 2;
-const safeAreaEdges = ['top'];
function CommunityDrawerContent(): React.Node {
const communities = useSelector(communityThreadSelector);
@@ -79,6 +78,15 @@
[childThreadInfosMap, communitiesSuffixed, labelStyles],
);
+ const safeAreaEdges = React.useMemo(
+ () =>
+ Platform.select({
+ ios: ['top'],
+ default: ['top', 'bottom'],
+ }),
+ [],
+ );
+
return (
<SafeAreaView style={styles.drawerContent} edges={safeAreaEdges}>
<FlatList data={drawerItemsData} renderItem={renderItem} />

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 1:52 AM (21 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679616
Default Alt Text
D6137.id20499.diff (1 KB)

Event Timeline