chore: Unify usage of openAppSettings
Search for app-settings: and you'll find this
We have openAppSettings though, so we should use it in those places.
https://github.com/RocketChat/Rocket.Chat.ReactNative/blob/b1105102f9b2a13b40970b31a6fc011ca9bad158/app/lib/methods/helpers/openAppSettings.ts
Also notice it's a promise. We should handle it.
But the return type is void in openAppSettings π
@Rohit3523 yeah, it's wrong, but it's also not the end of the world.
Either options are valid, but I prefer the second one to make it easier.
Just don't forget to await on caller.
@diegolmello can I work on this issue
Hi team! π
I'd like to pick this up. I have 4.7 years of React Native experience and have worked with app settings navigation and deep linking in production apps.
My approach:
- Audit all current usages of
openAppSettingsacross the codebase - Create a unified utility function/hook to standardise the behaviour
- Ensure consistent handling across iOS and Android
- Add proper error handling and fallbacks
- Update all call sites to use the unified approach
I can have a PR ready within the next few days. Let me know if there are any specific requirements or edge cases I should consider!
Happy to discuss the implementation approach before diving in. π
Hello maintainer, Iβm interested in contributing to this issue.
I can work on unifying the usage of openAppSettings across the codebase and make sure it stays consistent and well-tested on both platforms.
Kindly assign this issue to me if itβs available. Thank you!