From 2eb4a4f0cc7c285b2d07dc3591df1f38e03fff87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20G=2E=20Jord=C3=A1n?= Date: Mon, 21 Oct 2019 13:35:58 +0200 Subject: [PATCH] Vertical Offset We are using your branch while we wait the main project to merge your changes for the scrollview, thus we would need to have the verticalOffset option available in last versions, in order to properly position copilot steps in Android and iOS. --- src/hocs/copilot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hocs/copilot.js b/src/hocs/copilot.js index 6242ab31..1ac8f1a1 100644 --- a/src/hocs/copilot.js +++ b/src/hocs/copilot.js @@ -37,6 +37,7 @@ const copilot = ({ animated, androidStatusBarVisible, backdropColor, + verticalOffset = 0, } = {}) => (WrappedComponent) => { class Copilot extends Component { @@ -178,7 +179,7 @@ const copilot = ({ width: size.width + OFFSET_WIDTH, height: size.height + OFFSET_WIDTH, left: size.x - (OFFSET_WIDTH / 2), - top: size.y - (OFFSET_WIDTH / 2), + top: size.y - (OFFSET_WIDTH / 2) + verticalOffset, }); }