cobrowse-sdk-react-native
Advanced tools
Comparing version 2.4.5 to 2.5.0
@@ -1,3 +0,17 @@ | ||
import { requireNativeComponent } from 'react-native'; | ||
import React, { useContext } from 'react'; | ||
import { View, requireNativeComponent } from 'react-native'; | ||
const CBIOCobrowseRedacted = requireNativeComponent('CBIOCobrowseRedacted'); | ||
module.exports = requireNativeComponent('CBIOCobrowseRedacted'); | ||
const RedactionContext = React.createContext(false); | ||
module.exports = function(props) { | ||
const alreadyRedacted = useContext(RedactionContext); | ||
if (!alreadyRedacted) return ( | ||
<RedactionContext.Provider value={true}> | ||
<CBIOCobrowseRedacted> | ||
<View>{props.children}</View> | ||
</CBIOCobrowseRedacted> | ||
</RedactionContext.Provider> | ||
); | ||
return props.children; | ||
} |
{ | ||
"name": "cobrowse-sdk-react-native", | ||
"version": "2.4.5", | ||
"version": "2.5.0", | ||
"description": "Cobrowse SDK for React Native", | ||
@@ -5,0 +5,0 @@ "main": "./js/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
654567
87
229