@fullstory/babel-plugin-react-native
Advanced tools
Comparing version 1.0.0 to 1.0.1
# Changelog | ||
## 1.0.1 | ||
Work around an intermittent issue in the click handler when running with the Metro server | ||
## 1.0.0 | ||
@@ -4,0 +8,0 @@ |
@@ -41,3 +41,3 @@ "use strict"; | ||
// this is the code that we will generate for Pressability | ||
var _onFsPressForward_PressabilityCode = "_onFsPressForward_Pressability = function(isLongPress) {\n if (UIManager.onFsPressForward == null) {\n return;\n }\n\n if (this._responderID == null) {\n return;\n }\n\n var nativeTag = null;\n if (typeof this._responderID === 'number') {\n nativeTag = this._responderID;\n } else if (typeof this._responderID === 'object' && typeof this._responderID._nativeTag === 'number') {\n nativeTag = this._responderID._nativeTag\n }\n\n if (nativeTag == null) {\n return;\n }\n\n const {onLongPress, onPress} = this._config;\n\n var hasPress = !!onPress;\n var hasLongPress = !!onLongPress;\n UIManager.onFsPressForward(nativeTag, isLongPress, hasPress, hasLongPress);\n}"; | ||
var _onFsPressForward_PressabilityCode = "_onFsPressForward_Pressability = function(isLongPress) {\n if (!UIManager || !UIManager.onFsPressForward) {\n return;\n }\n\n if (this._responderID == null) {\n return;\n }\n\n var nativeTag = null;\n if (typeof this._responderID === 'number') {\n nativeTag = this._responderID;\n } else if (typeof this._responderID === 'object' && typeof this._responderID._nativeTag === 'number') {\n nativeTag = this._responderID._nativeTag\n }\n\n if (nativeTag == null) {\n return;\n }\n\n const {onLongPress, onPress} = this._config;\n\n var hasPress = !!onPress;\n var hasLongPress = !!onLongPress;\n UIManager.onFsPressForward(nativeTag, isLongPress, hasPress, hasLongPress);\n}"; | ||
var _onFsPressForwardCallLongPress_PressabilityCode = "this._onFsPressForward_Pressability(true)"; | ||
@@ -51,3 +51,3 @@ var _onFsPressForwardCallPress_PressabilityCode = "this._onFsPressForward_Pressability(false)"; | ||
// this is the code that we will generate for Touchable | ||
var _onFsPressForwardCode = "_onFsPressForward = function(isLongPress) {\n if (UIManager.onFsPressForward == null) {\n return;\n }\n\n const tag = this.state.touchable.responderID;\n if (tag == null) {\n return;\n }\n\n var nativeTag = null;\n if (typeof tag === 'number') {\n nativeTag = tag;\n } else if (typeof tag === 'object' && typeof tag._nativeTag === 'number') {\n nativeTag = tag._nativeTag\n }\n\n if (nativeTag == null) {\n return;\n }\n\n var hasPress = !!this.props.onPress;\n var hasLongPress = !!this.props.onLongPress;\n UIManager.onFsPressForward(nativeTag, isLongPress, hasPress, hasLongPress);\n}"; | ||
var _onFsPressForwardCode = "_onFsPressForward = function(isLongPress) {\n if (!UIManager || !UIManager.onFsPressForward) {\n return;\n }\n\n const tag = this.state.touchable.responderID;\n if (tag == null) {\n return;\n }\n\n var nativeTag = null;\n if (typeof tag === 'number') {\n nativeTag = tag;\n } else if (typeof tag === 'object' && typeof tag._nativeTag === 'number') {\n nativeTag = tag._nativeTag\n }\n\n if (nativeTag == null) {\n return;\n }\n\n var hasPress = !!this.props.onPress;\n var hasLongPress = !!this.props.onLongPress;\n UIManager.onFsPressForward(nativeTag, isLongPress, hasPress, hasLongPress);\n}"; | ||
var _onFsPressForwardCallLongPressCode = "this._onFsPressForward(true)"; | ||
@@ -54,0 +54,0 @@ var _onFsPressForwardCallPressCode = "this._onFsPressForward(false)"; |
{ | ||
"name": "@fullstory/babel-plugin-react-native", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "The official FullStory React Native babel plugin", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/fullstorydev/fullstory-babel-plugin-react-native.git", |
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
17346