There is an upstream change, where in react-native@0.65.0 they deprecated the old api in favour of a more terse name, so removeListener()
becomes remove()
.
This means that any package you use that calls these will produce warnings as such, until they release new package versions to address this.
Your comment to Bharat Varma seems to suggest you're using https://github.com/react-native-community - they haven't released a new version in a long time, and there are open Pull Requests targeting this same issue (which are going unaddressed at the moment).
Your best bet to get rid of it for now would be to use patch-package to modify the node module with the PR fix linked above (just need to change removeListener to remove on the useDeviceOrientation hook they export), and use this until they merge fixes for this.