Socket
Socket
Sign inDemoInstall

react-native-web

Package Overview
Dependencies
Maintainers
1
Versions
355
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-web - npm Package Compare versions

Comparing version 0.17.4 to 0.17.5

25

dist/cjs/vendor/react-native/Animated/createAnimatedComponent.js

@@ -207,4 +207,2 @@ /**

_proto.render = function render() {
var _props$collapsable, _props$nativeID;
var _ref = this._propsAnimated.__getValue() || {},

@@ -220,24 +218,5 @@ _ref$style = _ref.style,

var mergedStyle = _objectSpread(_objectSpread({}, style), passthruStyle); // On Fabric, we always want to ensure the container Animated View is *not*
// flattened.
// Because we do not get a host component ref immediately and thus cannot
// do a proper Fabric vs non-Fabric detection immediately, we default to assuming
// that Fabric *is* enabled until we know otherwise.
// Thus, in Fabric, this view will never be flattened. In non-Fabric, the view will
// not be flattened during the initial render but may be flattened in the second render
// and onwards.
var mergedStyle = _objectSpread(_objectSpread({}, style), passthruStyle);
var forceNativeIdFabric = this._component == null && ((options == null ? void 0 : options.collapsable) === false || props.collapsable !== true) || this._isFabric();
var forceNativeId = (_props$collapsable = props.collapsable) !== null && _props$collapsable !== void 0 ? _props$collapsable : this._propsAnimated.__isNative || forceNativeIdFabric || (options == null ? void 0 : options.collapsable) === false; // The native driver updates views directly through the UI thread so we
// have to make sure the view doesn't get optimized away because it cannot
// go through the NativeViewHierarchyManager since it operates on the shadow
// thread. TODO: T68258846
var collapsableProps = forceNativeId ? {
nativeID: (_props$nativeID = props.nativeID) !== null && _props$nativeID !== void 0 ? _props$nativeID : 'animatedComponent',
collapsable: false
} : {};
return /*#__PURE__*/React.createElement(Component, _extends({}, props, passthruProps, collapsableProps, {
return /*#__PURE__*/React.createElement(Component, _extends({}, props, passthruProps, {
style: mergedStyle,

@@ -244,0 +223,0 @@ ref: this._setComponentRef

@@ -191,4 +191,2 @@ /**

_proto.render = function render() {
var _props$collapsable, _props$nativeID;
var _ref = this._propsAnimated.__getValue() || {},

@@ -204,24 +202,5 @@ _ref$style = _ref.style,

var mergedStyle = _objectSpread(_objectSpread({}, style), passthruStyle); // On Fabric, we always want to ensure the container Animated View is *not*
// flattened.
// Because we do not get a host component ref immediately and thus cannot
// do a proper Fabric vs non-Fabric detection immediately, we default to assuming
// that Fabric *is* enabled until we know otherwise.
// Thus, in Fabric, this view will never be flattened. In non-Fabric, the view will
// not be flattened during the initial render but may be flattened in the second render
// and onwards.
var mergedStyle = _objectSpread(_objectSpread({}, style), passthruStyle);
var forceNativeIdFabric = this._component == null && ((options == null ? void 0 : options.collapsable) === false || props.collapsable !== true) || this._isFabric();
var forceNativeId = (_props$collapsable = props.collapsable) !== null && _props$collapsable !== void 0 ? _props$collapsable : this._propsAnimated.__isNative || forceNativeIdFabric || (options == null ? void 0 : options.collapsable) === false; // The native driver updates views directly through the UI thread so we
// have to make sure the view doesn't get optimized away because it cannot
// go through the NativeViewHierarchyManager since it operates on the shadow
// thread. TODO: T68258846
var collapsableProps = forceNativeId ? {
nativeID: (_props$nativeID = props.nativeID) !== null && _props$nativeID !== void 0 ? _props$nativeID : 'animatedComponent',
collapsable: false
} : {};
return /*#__PURE__*/React.createElement(Component, _extends({}, props, passthruProps, collapsableProps, {
return /*#__PURE__*/React.createElement(Component, _extends({}, props, passthruProps, {
style: mergedStyle,

@@ -228,0 +207,0 @@ ref: this._setComponentRef

2

package.json

@@ -6,3 +6,3 @@ {

"name": "react-native-web",
"version": "0.17.4",
"version": "0.17.5",
"description": "React Native for Web",

@@ -9,0 +9,0 @@ "module": "dist/index.js",

@@ -227,30 +227,2 @@ /**

// On Fabric, we always want to ensure the container Animated View is *not*
// flattened.
// Because we do not get a host component ref immediately and thus cannot
// do a proper Fabric vs non-Fabric detection immediately, we default to assuming
// that Fabric *is* enabled until we know otherwise.
// Thus, in Fabric, this view will never be flattened. In non-Fabric, the view will
// not be flattened during the initial render but may be flattened in the second render
// and onwards.
const forceNativeIdFabric =
(this._component == null &&
(options?.collapsable === false || props.collapsable !== true)) ||
this._isFabric();
const forceNativeId =
props.collapsable ??
(this._propsAnimated.__isNative ||
forceNativeIdFabric ||
options?.collapsable === false);
// The native driver updates views directly through the UI thread so we
// have to make sure the view doesn't get optimized away because it cannot
// go through the NativeViewHierarchyManager since it operates on the shadow
// thread. TODO: T68258846
const collapsableProps = forceNativeId
? {
nativeID: props.nativeID ?? 'animatedComponent',
collapsable: false,
}
: {};
return (

@@ -260,3 +232,2 @@ <Component

{...passthruProps}
{...collapsableProps}
style={mergedStyle}

@@ -263,0 +234,0 @@ ref={this._setComponentRef}

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc