You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-walkthrough-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-walkthrough-tooltip - npm Package Compare versions

Comparing version

to
1.0.0-beta.1

2

package.json
{
"name": "react-native-walkthrough-tooltip",
"version": "1.0.0-beta.0",
"version": "1.0.0-beta.1",
"description": "An inline wrapper for calling out React Native components via tooltip",

@@ -5,0 +5,0 @@ "main": "src/tooltip.js",

@@ -1,2 +0,1 @@

// @flow
import { StyleSheet } from "react-native";

@@ -3,0 +2,0 @@

@@ -161,2 +161,11 @@ import React, { Component } from "react";

// update placement in state if changed (and inverted if childless!)
const hasChildren = React.Children.count(nextProps.children) > 0;
const nextPlacement = hasChildren
? nextProps.placement
: invertPlacement(nextProps.placement);
if (nextPlacement !== prevState.placement) {
nextState.placement = nextPlacement;
}
if (Object.keys(nextState).length) {

@@ -163,0 +172,0 @@ return nextState;