Page MenuHomePhabricator

D13062.id43357.diff
No OneTemporary

D13062.id43357.diff

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

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)

Event Timeline