react-native-walkthrough-tooltip
Advanced tools
Comparing version 1.1.10 to 1.1.11
{ | ||
"name": "react-native-walkthrough-tooltip", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"description": "An inline wrapper for calling out React Native components via tooltip", | ||
@@ -5,0 +5,0 @@ "main": "src/tooltip.js", |
@@ -11,3 +11,2 @@ # React Native Walkthrough Tooltip [![npm](https://img.shields.io/npm/v/react-native-walkthrough-tooltip.svg)](https://www.npmjs.com/package/react-native-walkthrough-tooltip) [![npm](https://img.shields.io/npm/dm/react-native-walkthrough-tooltip.svg)](https://www.npmjs.com/package/react-native-walkthrough-tooltip) | ||
- [Installation](#installation) | ||
- [Sponsorship](#sponsorship) | ||
- [Breaking Changes in Version 1.0](#breaking-changes-in-version-10) | ||
@@ -28,10 +27,2 @@ - [Example Usage](#example-usage) | ||
### Sponsorship | ||
<a href="https://tracking.gitads.io/?repo=react-native-walkthrough-tooltip"> | ||
<img src="https://images.gitads.io/react-native-walkthrough-tooltip" alt="GitAds"/> | ||
</a> | ||
> `react-native-walkthrough-tooltip` is sponsored by the above tool, help us out by checking it out and signing up for a free trial | ||
### Breaking Changes in Version 1.0 | ||
@@ -38,0 +29,0 @@ |
@@ -116,2 +116,3 @@ import React, { Component } from 'react'; | ||
this.isMeasuringChild = false; | ||
this.interactionPromise = null; | ||
@@ -161,2 +162,5 @@ this.childWrapper = React.createRef(); | ||
Dimensions.removeEventListener('change', this.updateWindowDims); | ||
if (this.interactionPromise) { | ||
this.interactionPromise.cancel(); | ||
} | ||
} | ||
@@ -275,3 +279,6 @@ | ||
if (this.props.useInteractionManager) { | ||
InteractionManager.runAfterInteractions(() => { | ||
if (this.interactionPromise) { | ||
this.interactionPromise.cancel(); | ||
} | ||
this.interactionPromise = InteractionManager.runAfterInteractions(() => { | ||
doMeasurement(); | ||
@@ -278,0 +285,0 @@ }); |
1072
47285
125