Page MenuHomePhabricator

D13065.id43360.diff
No OneTemporary

D13065.id43360.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
@@ -21,7 +21,7 @@
type ReanimatedTransform,
} from '../types/styles.js';
-const { Value, Node, Extrapolate, add, multiply, interpolateNode } = Animated;
+const { Value, Extrapolate, add, multiply, interpolateNode } = Animated;
const unboundStyles = {
backdrop: {
@@ -70,23 +70,19 @@
+verticalBounds: VerticalBounds,
};
-export type BaseNUXTipsOverlayProps = {
+export type NUXTipsOverlayProps = {
+navigation: AppNavigationProp<'NUXTipsOverlay'>,
+route: NavigationRoute<'NUXTipsOverlay'>,
};
-type ButtonProps<Base> = {
- ...Base,
- +progress: Node,
-};
const tipHeight: number = 30;
const margin: number = 20;
function createNUXTipsOverlay(
- ButtonComponent: React.ComponentType<ButtonProps<BaseNUXTipsOverlayProps>>,
+ ButtonComponent: React.ComponentType<NUXTipsOverlayProps>,
getTipText: () => string,
-): React.ComponentType<BaseNUXTipsOverlayProps> {
- function NUXTipsOverlay(props: BaseNUXTipsOverlayProps) {
+): React.ComponentType<NUXTipsOverlayProps> {
+ function NUXTipsOverlay(props: NUXTipsOverlayProps) {
const dimensions = useSelector(state => state.dimensions);
const overlayContext = React.useContext(OverlayContext);
invariant(overlayContext, 'NUXTipsOverlay should have OverlayContext');
@@ -258,11 +254,7 @@
<AnimatedView style={opacityStyle} />
<View style={contentContainerStyle}>
<View style={buttonStyle}>
- <ButtonComponent
- navigation={props.navigation}
- route={route}
- progress={position}
- />
+ <ButtonComponent navigation={props.navigation} route={route} />
</View>
</View>
<AnimatedView
@@ -278,7 +270,7 @@
</TouchableWithoutFeedback>
);
}
- return React.memo<BaseNUXTipsOverlayProps>(NUXTipsOverlay);
+ return React.memo<NUXTipsOverlayProps>(NUXTipsOverlay);
}
export { createNUXTipsOverlay };

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 6:46 AM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2686766
Default Alt Text
D13065.id43360.diff (2 KB)

Event Timeline