Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32216510
D13080.1765167372.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D13080.1765167372.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
@@ -12,7 +12,11 @@
type ExitAnimationsValues,
} from 'react-native-reanimated';
-import { NUXTipsContext } from '../components/nux-tips-context.react.js';
+import RegistrationButton from '../account/registration/registration-button.react.js';
+import {
+ getTipCallbackParams,
+ NUXTipsContext,
+} from '../components/nux-tips-context.react.js';
import type { NUXTip } from '../components/nux-tips-context.react.js';
import type { AppNavigationProp } from '../navigation/app-navigator.react.js';
import { OverlayContext } from '../navigation/overlay-context.js';
@@ -54,6 +58,7 @@
backgroundColor: 'tooltipBackground',
borderRadius: 5,
overflow: 'hidden',
+ padding: 20,
},
triangleUp: {
borderBottomColor: 'tooltipBackground',
@@ -86,7 +91,11 @@
tipText: {
color: 'panelForegroundLabel',
fontSize: 20,
- padding: 15,
+ marginBottom: 10,
+ },
+ buttonContainer: {
+ width: 100,
+ alignSelf: 'flex-end',
},
};
@@ -355,6 +364,27 @@
triangleUp = <View style={[styles.triangleUp, triangleStyle]} />;
}
+ const callbackParams = getTipCallbackParams(route.params.tipKey);
+
+ const onPressOk = React.useCallback(() => {
+ const {
+ nextTip,
+ tooltipLocation: nextLocation,
+ nextRouteName,
+ } = callbackParams;
+ if (!nextTip || !nextRouteName) {
+ goBackOnce();
+ return;
+ }
+ navigation.navigate<NUXTipRouteNames>({
+ name: nextRouteName,
+ params: {
+ tipKey: nextTip,
+ tooltipLocation: nextLocation,
+ },
+ });
+ }, [callbackParams, goBackOnce, navigation]);
+
return (
<TouchableWithoutFeedback onPress={goBackOnce}>
<View style={styles.container}>
@@ -381,6 +411,13 @@
{triangleUp}
<View style={styles.items}>
<Text style={styles.tipText}>{tipText}</Text>
+ <View style={styles.buttonContainer}>
+ <RegistrationButton
+ onPress={onPressOk}
+ label="Next"
+ variant="enabled"
+ />
+ </View>
</View>
{triangleDown}
</AnimatedView>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 8, 4:16 AM (4 h, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5847027
Default Alt Text
D13080.1765167372.diff (2 KB)
Attached To
Mode
D13080: [native] Add <next> button to nux tips
Attached
Detach File
Event Timeline
Log In to Comment