react-native-root-siblings
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -5,2 +5,3 @@ import { ReactNode } from 'react'; | ||
private id; | ||
private manager; | ||
constructor(element: ReactNode, callback?: () => void); | ||
@@ -7,0 +8,0 @@ update(element: ReactNode, callback?: () => void): void; |
@@ -34,10 +34,11 @@ import React, { useEffect, useState } from 'react'; | ||
this.id = `root-sibling-${uuid + 1}`; | ||
getActiveManager().update(this.id, element, callback); | ||
this.manager = getActiveManager(); | ||
this.manager.update(this.id, element, callback); | ||
uuid++; | ||
} | ||
update(element, callback) { | ||
getActiveManager().update(this.id, element, callback); | ||
this.manager.update(this.id, element, callback); | ||
} | ||
destroy(callback) { | ||
getActiveManager().destroy(this.id, callback); | ||
this.manager.destroy(this.id, callback); | ||
} | ||
@@ -44,0 +45,0 @@ } |
{ | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"name": "react-native-root-siblings", | ||
@@ -4,0 +4,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
37427
729