@fullstory/babel-plugin-react-native
Advanced tools
Comparing version 1.0.1 to 1.0.2
# Changelog | ||
## 1.0.2 | ||
Additional work around for an intermittent issue in the click handler when running with the Metro server | ||
## 1.0.1 | ||
@@ -4,0 +8,0 @@ |
@@ -40,4 +40,5 @@ "use strict"; | ||
// this is the code that we will generate for Pressability | ||
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}"; | ||
// This is the code that we will generate for Pressability. | ||
// Note that `typeof UIManager` will cause an exception, so we use a try/catch. | ||
var _onFsPressForward_PressabilityCode = "_onFsPressForward_Pressability = function(isLongPress) {\n try {\n if (!UIManager || !UIManager.onFsPressForward) {\n return;\n }\n } catch (e) {\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)"; | ||
@@ -50,4 +51,5 @@ 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 || !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}"; | ||
// This is the code that we will generate for Touchable. | ||
// Note that `typeof UIManager` will cause an exception, so we use a try/catch. | ||
var _onFsPressForwardCode = "_onFsPressForward = function(isLongPress) {\n try {\n if (!UIManager || !UIManager.onFsPressForward) {\n return;\n }\n } catch (e) {\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 +56,0 @@ var _onFsPressForwardCallPressCode = "this._onFsPressForward(false)"; |
{ | ||
"name": "@fullstory/babel-plugin-react-native", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The official FullStory React Native babel plugin", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/fullstorydev/fullstory-babel-plugin-react-native.git", |
@@ -11,3 +11,3 @@ # FullStory React Native Babel Plugin | ||
This plug-in is intended to be used in conjunction with [FullStory for Mobile Apps](https://www.fullstory.com/mobile-apps/). For more information, please see [this](https://help.fullstory.com/hc/en-us/articles/360052419133) getting started guide. | ||
This plug-in is intended to be used in conjunction with [FullStory for Mobile Apps](https://www.fullstory.com/mobile-apps/). For more information, please see [this](https://help.fullstory.com/hc/en-us/articles/360052419133) getting started guide. Email mobile-support@fullstory.com for additional help. | ||
@@ -14,0 +14,0 @@ ## Install the React Native babel plugin |
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
17780
259