diff --git a/babel.config.js b/babel.config.js index 74b4275c..4dc5cd0a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -30,7 +30,7 @@ module.exports = { }, ], 'jest-hoist', - 'react-native-reanimated/plugin' + 'react-native-reanimated/plugin', ], env: { production: { diff --git a/src/components/Tour/components/AnimatedRenderMask.tsx b/src/components/Tour/components/AnimatedRenderMask.tsx index fd917b9e..b6e1a9ec 100644 --- a/src/components/Tour/components/AnimatedRenderMask.tsx +++ b/src/components/Tour/components/AnimatedRenderMask.tsx @@ -57,6 +57,7 @@ const AnimatedRenderMask: React.FC = ({ maskRect }) => { ], })); + // TODO: Can use for ripple animation in future // const animatedRectProps = useAnimatedProps(() => { // const animatedExpansion = interpolate(rippleAnimation.value, [0, 1], [0, 10]); // return { @@ -94,6 +95,7 @@ const AnimatedRenderMask: React.FC = ({ maskRect }) => { opacity={0.8} /> + {/* Can use this for ripple animation in future */} {/* (funct return null; } + const showMask = containerVisible && maskRect; + return ( (funct style={{ backgroundColor: 'transparent' }} > - {containerVisible && maskRect ? : null} - {containerVisible && maskRect ? ( + {showMask ? : null} + {showMask ? ( diff --git a/src/components/Tour/components/Tooltip.tsx b/src/components/Tour/components/Tooltip.tsx index a399887b..d902aa86 100644 --- a/src/components/Tour/components/Tooltip.tsx +++ b/src/components/Tour/components/Tooltip.tsx @@ -70,7 +70,7 @@ export const Tooltip: React.FC = ({ labels }) => {