react-native-root-siblings
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -58,10 +58,8 @@ import React, { useEffect, useState } from 'react'; | ||
}, [sibling]); | ||
useEffect(() => { | ||
if (inactive && sibling) { | ||
inactiveManagers.add(sibling.manager); | ||
} | ||
else if (!inactive && sibling && inactiveManagers.has(sibling.manager)) { | ||
inactiveManagers.delete(sibling.manager); | ||
} | ||
}, [inactive, sibling]); | ||
if (inactive && sibling && !inactiveManagers.has(sibling.manager)) { | ||
inactiveManagers.add(sibling.manager); | ||
} | ||
else if (!inactive && sibling && inactiveManagers.has(sibling.manager)) { | ||
inactiveManagers.delete(sibling.manager); | ||
} | ||
if (!sibling) { | ||
@@ -68,0 +66,0 @@ const { Root: Parent, manager: parentManager } = wrapRootComponent(ChildrenWrapper, renderSibling); |
{ | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"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
37355
725