-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native instrumentation package #241
base: main
Are you sure you want to change the base?
Conversation
@@ -45,9 +47,9 @@ export const isPrimitive = ((value) => !isObject(value) && !isFunction(value)) a | |||
string | number | bigint | boolean | symbol | |||
>; | |||
|
|||
export const isEventDefined = !isUndefined(Event); | |||
export const isEventDefined = !isUndefined(globalObject?.Event); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't get a polyfill of Event to work, so instead just adding some error protection. Otherwise in the React Native environment you would get a "ReferenceError.... Cannot find variable: Event"
in order for us to be able to merge this we would need
once we have those in, the team could do some reviews on the changes and potentially add this as an experimental feature. if you were able to do some work on this I would be happy to do some reviews. I just unfortunately do not have the time to finish up this PR. |
For August 2023 Hackathon