Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3527960
D13062.id43357.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
D13062.id43357.diff
View Options
diff --git a/native/tooltip/nux-tips-overlay.react.js b/native/tooltip/nux-tips-overlay.react.js
--- a/native/tooltip/nux-tips-overlay.react.js
+++ b/native/tooltip/nux-tips-overlay.react.js
@@ -2,7 +2,7 @@
import invariant from 'invariant';
import * as React from 'react';
-import { View, TouchableWithoutFeedback, Platform } from 'react-native';
+import { View, TouchableWithoutFeedback, Platform, Text } from 'react-native';
import Animated from 'react-native-reanimated';
import type { AppNavigationProp } from '../navigation/app-navigator.react.js';
@@ -58,6 +58,11 @@
height: 10,
width: 10,
},
+ tipText: {
+ color: 'panelForegroundLabel',
+ fontSize: 20,
+ padding: 15,
+ },
};
export type NUXTipsOverlayParams = {
@@ -79,7 +84,7 @@
function createNUXTipsOverlay(
ButtonComponent: React.ComponentType<ButtonProps<BaseNUXTipsOverlayProps>>,
- MenuComponent: React.ComponentType<BaseNUXTipsOverlayProps>,
+ getTipText: () => string,
): React.ComponentType<BaseNUXTipsOverlayProps> {
function ConnectedNUXTipsOverlay(props: BaseNUXTipsOverlayProps) {
const dimensions = useSelector(state => state.dimensions);
@@ -244,6 +249,8 @@
}
}, [dimensions.width, initialCoordinates]);
+ const tipText = getTipText();
+
return (
<TouchableWithoutFeedback onPress={goBackOnce}>
<View style={styles.container}>
@@ -263,7 +270,7 @@
>
<View style={[styles.triangleUp, triangleStyle]} />
<View style={styles.items}>
- <MenuComponent navigation={navigation} route={route} key="menu" />
+ <Text style={styles.tipText}>{tipText}</Text>
</View>
</AnimatedView>
</View>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 7:33 AM (10 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2701940
Default Alt Text
D13062.id43357.diff (1 KB)
Attached To
Mode
D13062: [native] Turn MenuComponent into text
Attached
Detach File
Event Timeline
Log In to Comment