react-native-safe-area-context
react-native-safe-area-context copied to clipboard
Update removeEventListner deprecation to just use .remove()
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.