react-native-walkthrough-tooltip
Advanced tools
Comparing version
{ | ||
"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; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
147270
0.23%766
0.92%0
-100%