Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3332685
D13987.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D13987.diff
View Options
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
@@ -169,6 +169,26 @@
</TouchableOpacity>
);
+ let exploreCommunitiesButton;
+ if (__DEV__) {
+ exploreCommunitiesButton = (
+ <TouchableOpacity activeOpacity={0.4}>
+ <View style={styles.exploreCommunitiesContainer}>
+ <View style={styles.exploreCommunitiesIconContainer}>
+ <SWMansionIcon
+ name="search"
+ size={22}
+ style={styles.exploreCommunitiesIcon}
+ />
+ </View>
+ <Text style={styles.exploreCommunitiesText}>Explore communities</Text>
+ </View>
+ </TouchableOpacity>
+ );
+ } else {
+ exploreCommunitiesButton = null;
+ }
+
const flattenedDrawerItemsData = React.useMemo(
() => flattenDrawerItemsData(drawerItemsData, [...expanded.values()]),
[drawerItemsData, expanded],
@@ -182,6 +202,7 @@
initialNumToRender={30}
/>
{communityCreationButton}
+ {exploreCommunitiesButton}
</SafeAreaView>
);
}
@@ -195,7 +216,7 @@
},
communityCreationContainer: {
flexDirection: 'row',
- padding: 24,
+ padding: 16,
alignItems: 'center',
borderTopWidth: 1,
borderColor: 'panelSeparator',
@@ -218,6 +239,30 @@
communityCreationIcon: {
color: 'panelForegroundLabel',
},
+ exploreCommunitiesContainer: {
+ flexDirection: 'row',
+ paddingTop: 0,
+ padding: 16,
+ alignItems: 'center',
+ },
+ exploreCommunitiesText: {
+ color: 'panelForegroundLabel',
+ fontSize: 16,
+ lineHeight: 24,
+ fontWeight: '500',
+ },
+ exploreCommunitiesIconContainer: {
+ height: 28,
+ width: 28,
+ justifyContent: 'center',
+ alignItems: 'center',
+ borderRadius: 16,
+ marginRight: 12,
+ backgroundColor: 'panelSecondaryForeground',
+ },
+ exploreCommunitiesIcon: {
+ color: 'panelForegroundLabel',
+ },
};
const labelUnboundStyles = {
level0Label: {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 1:14 AM (17 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2559250
Default Alt Text
D13987.diff (2 KB)
Attached To
Mode
D13987: [native] button in community drawer for exploring communities
Attached
Detach File
Event Timeline
Log In to Comment