react-native-safe-area-context icon indicating copy to clipboard operation
react-native-safe-area-context copied to clipboard

Update removeEventListner deprecation to just use .remove()

Open namrog84 opened this issue 3 years ago • 0 comments

Summary

Update deprecrated usage of remove.

The signature '(type: "change", handler: ({ window, screen }: { window: ScaledSize; screen: ScaledSize; }) => void): void' of 'Dimensions.removeEventListener' is deprecated.ts(6387)
index.d.ts(6208, 8): The declaration was marked as deprecated here.

Test Plan

I ran the code, saw the warning. I changed the code. The warning goes away. Also we are patch-packaging this change into our own code.

namrog84 avatar May 11 '22 18:05 namrog84