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,
- +progress: Node,
-};
const tipHeight: number = 30;
const margin: number = 20;
function createNUXTipsOverlay(
- ButtonComponent: React.ComponentType>,
+ ButtonComponent: React.ComponentType,
getTipText: () => string,
-): React.ComponentType {
- function NUXTipsOverlay(props: BaseNUXTipsOverlayProps) {
+): React.ComponentType {
+ 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 @@
-
+
);
}
- return React.memo(NUXTipsOverlay);
+ return React.memo(NUXTipsOverlay);
}
export { createNUXTipsOverlay };