Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3503682
D12985.id43355.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
D12985.id43355.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
@@ -114,22 +114,14 @@
dimensions,
position,
styles,
- closeTip,
- contentContainerStyle,
opacityStyle,
buttonStyle,
- tipHorizontalOffset,
- onTipContainerLayout,
- tipContainerOpacity,
- tipVerticalBelow,
- tipHorizontal,
- tipScale,
tipContainerStyle,
- ...navAndRouteForFlow
+ navigation,
+ route,
} = this.props;
let triangleStyle;
- const { route } = this.props;
const { initialCoordinates } = route.params;
const { x, width } = initialCoordinates;
const extraLeftSpace = x;
@@ -146,37 +138,32 @@
};
}
- const triangleUp = <View style={[styles.triangleUp, triangleStyle]} />;
-
- const buttonProps: ButtonProps<BaseNUXTipsOverlayProps> = {
- ...navAndRouteForFlow,
- progress: position,
- };
-
- let tip = null;
-
- tip = (
- <AnimatedView
- style={tipContainerStyle}
- onLayout={this.props.onTipContainerLayout}
- >
- {triangleUp}
- <View style={styles.items}>
- <MenuComponent {...navAndRouteForFlow} key="menu" />
- </View>
- </AnimatedView>
- );
-
return (
<TouchableWithoutFeedback onPress={this.props.closeTip}>
<View style={styles.container}>
<AnimatedView style={opacityStyle} />
<View style={this.props.contentContainerStyle}>
<View style={buttonStyle}>
- <ButtonComponent {...buttonProps} />
+ <ButtonComponent
+ navigation={navigation}
+ route={route}
+ progress={position}
+ />
</View>
</View>
- {tip}
+ <AnimatedView
+ style={tipContainerStyle}
+ onLayout={this.props.onTipContainerLayout}
+ >
+ <View style={[styles.triangleUp, triangleStyle]} />
+ <View style={styles.items}>
+ <MenuComponent
+ navigation={navigation}
+ route={route}
+ key="menu"
+ />
+ </View>
+ </AnimatedView>
</View>
</TouchableWithoutFeedback>
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 6:07 AM (18 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2684143
Default Alt Text
D12985.id43355.diff (2 KB)
Attached To
Mode
D12985: [native] Inline code in NUXTipsOverlay
Attached
Detach File
Event Timeline
Log In to Comment