Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3299464
D13081.id43382.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13081.id43382.diff
View Options
diff --git a/native/navigation/community-drawer-button-base.react.js b/native/navigation/community-drawer-button-base.react.js
new file mode 100644
--- /dev/null
+++ b/native/navigation/community-drawer-button-base.react.js
@@ -0,0 +1,19 @@
+// @flow
+
+import Icon from '@expo/vector-icons/Feather.js';
+import * as React from 'react';
+
+import { useStyles } from '../themes/colors.js';
+
+// eslint-disable-next-line no-unused-vars
+export default function CommunityDrawerButtonBase(props: { ... }): React.Node {
+ const styles = useStyles(unboundStyles);
+ return <Icon name="menu" size={26} style={styles.drawerButton} />;
+}
+
+const unboundStyles = {
+ drawerButton: {
+ color: 'listForegroundSecondaryLabel',
+ marginLeft: 16,
+ },
+};
diff --git a/native/navigation/community-drawer-tip.react.js b/native/navigation/community-drawer-tip.react.js
new file mode 100644
--- /dev/null
+++ b/native/navigation/community-drawer-tip.react.js
@@ -0,0 +1,20 @@
+// @flow
+
+import * as React from 'react';
+
+import CommunityDrawerButtonBase from './community-drawer-button-base.react.js';
+import {
+ type NUXTipsOverlayProps,
+ createNUXTipsOverlay,
+} from '../tooltip/nux-tips-overlay.react.js';
+
+const communityDrawerText =
+ 'You can use this view to explore the tree of channels ' +
+ 'inside a community. This shows you all of the channels you can see, ' +
+ "including ones you haven't joined.";
+
+const CommunityDrawerTip: React.ComponentType<
+ NUXTipsOverlayProps<'CommunityDrawerTip'>,
+> = createNUXTipsOverlay(CommunityDrawerButtonBase, communityDrawerText);
+
+export default CommunityDrawerTip;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 12:24 PM (16 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2534919
Default Alt Text
D13081.id43382.diff (1 KB)
Attached To
Mode
D13081: [native] Extract community drawer button for nux tips, create community drawer tip
Attached
Detach File
Event Timeline
Log In to Comment