react-native-hotspot
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "react-native-hotspot", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A React Native component that displays hotspots over desired components to help lead your users through an onboarding flow or direct them towards new UI elements", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
import React, { PureComponent } from 'react'; | ||
import { findNodeHandle } from 'react-native'; | ||
import PropTypes from 'prop-types'; | ||
import { Pulse } from './'; | ||
@@ -8,2 +9,6 @@ | ||
export class RNHotspot extends PureComponent { | ||
static propTypes = { | ||
componentRefs: PropTypes.array.isRequired, | ||
}; | ||
constructor(props) { | ||
@@ -62,2 +67,3 @@ super(props); | ||
const { hotspots } = this.state; | ||
const { componentRefs, ...otherProps } = this.props; | ||
@@ -75,2 +81,3 @@ if (!hotspots) { | ||
onPress={this.onPress} | ||
{...otherProps} | ||
/> | ||
@@ -77,0 +84,0 @@ ); |
@@ -5,6 +5,2 @@ import React, { PureComponent } from 'react'; | ||
// https://github.com/facebook/react-native/issues/8968#issuecomment-314322836 | ||
// Android currently has a limitation where the parent component will restrict the full radius | ||
// of the pulse. | ||
export class Pulse extends PureComponent { | ||
@@ -11,0 +7,0 @@ static propTypes = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
12154
221
0