Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

chore: Unify usage of openAppSettings

Open diegolmello opened this issue 1 year ago β€’ 5 comments

Search for app-settings: and you'll find this

Image

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.

diegolmello avatar Mar 21 '25 16:03 diegolmello

But the return type is void in openAppSettings πŸ‘€

Rohit3523 avatar Mar 21 '25 16:03 Rohit3523

@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.

Image

diegolmello avatar Mar 21 '25 16:03 diegolmello

@diegolmello can I work on this issue

blazethunderstorm avatar Jun 08 '25 06:06 blazethunderstorm

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:

  1. Audit all current usages of openAppSettings across the codebase
  2. Create a unified utility function/hook to standardise the behaviour
  3. Ensure consistent handling across iOS and Android
  4. Add proper error handling and fallbacks
  5. 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. πŸš€

nihar777 avatar Oct 30 '25 18:10 nihar777

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!

ankitadhara28 avatar Jan 05 '26 13:01 ankitadhara28