[Due for payment 2026-11-28] [$175] Migrate ShareActionHandlerModule to Nitro
ShareActionHandlerModule is a legacy module using the Old Arch compatibility layer (i.e: eagerly loaded on startup), with no compile-time type safety. This issue is a placeholder to migrate it to use a modern Nitro/Swift/Kotlin stack instead of legacy modules/Objective-C/Kotlin and to establish a compile-time type safety contract.
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022112798897148465974
- Upwork Job ID: 2112798897148465974
- Last Price Increase: 2026-10-21
Issue Owner
Current Issue Owner: @TaduJR
@nabi-ebrahimi is going to work on this
@roryabraham me here
@roryabraham β to hire @nabi-ebrahimi on Upwork, add the External label so a job is created and the offer is sent automatically.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External)
Job added to Upwork: https://www.upwork.com/jobs/~022112798897148465974
Proposal
Please re-state the problem that we are trying to solve in this issue.
ShareActionHandlerModule (src/libs/ShareActionHandlerModule/index.ts and index.native.ts) is currently implemented as a legacy React Native bridge module (NativeModules.ShareActionHandlerModule) using the Old Architecture compatibility layer, which is eagerly initialized at startup and lacks compile-time type safety across TypeScript, Swift, and Kotlin. We need to migrate it to a modern react-native-nitro-modules (HybridObject) implementation.
What is the root cause of that problem?
ShareActionHandlerModule was written before the codebase adopted react-native-nitro-modules. Its iOS (ShareActionHandlerModule.h/.m) and Android (ShareActionHandlerModule.kt / ShareActionHandlerPackage.kt) implementations still extend RCTBridgeModule / ReactContextBaseJavaModule and are accessed via untyped NativeModules.ShareActionHandlerModule in src/libs/ShareActionHandlerModule/index.native.ts.
What changes do you think we should make in order to solve the problem?
- Define the Nitro specification interface
ShareActionHandler.nitro.ts(extendingHybridObject<{ ios: 'swift', android: 'kotlin' }>) withprocessFiles(callback: (files: string) => void): void(or typedShareTempFile[]return/callback contract matchingShareActionHandlerModule). - Run
nitrogencode generation to generate the C++/Swift/Kotlin Nitrogen bindings. - Implement
HybridShareActionHandlerin Swift (ios/NewExpensify/HybridShareActionHandler.swift) and Kotlin (android/app/src/main/java/com/expensify/chat/HybridShareActionHandler.kt), migrating the file-reading logic from the legacyShareActionHandlerModuleclasses and removingShareActionHandlerPackagefrom eager package registration. - Update
src/libs/ShareActionHandlerModule/index.native.tsto instantiate the Nitro hybrid object viaNitroModules.createHybridObject<ShareActionHandler>('ShareActionHandler')while keepingsrc/libs/ShareActionHandlerModule/index.tsas the no-op web fallback.
What alternative solutions did you explore? (Optional)
We considered migrating ShareActionHandlerModule to a TurboModule (RCTTurboModule), but the issue specifically standardizes on react-native-nitro-modules (Nitro / Swift / Kotlin) for direct JSI bindings without Objective-C++ glue code.
π£ @jeffrey-graham! π£ Hey, it seems we donβt have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
- Make sure you've read and understood the contributing guidelines.
- Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
- Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
- Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
I can take over
π£ @TaduJR π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
Thanks @TaduJR
Since @TaduJR is assigned here I can safely transition out of this issue.
@TaduJR Please create both E/App and Mobile-Expensify PRs using Melvin. I am going to unassign myself.
@TaduJR any estimate when you might be able to complete this?
@roryabraham
Thanks for the bump!
ETA EOD/tomorrow to raise the new PR.
@MelvinBot
Do you have access to raise a PR on Mobile-Expensify before giving you the diff?
Noβnot with my current access. GitHub returns 404 Not Found for Expensify/Mobile-Expensify, so I canβt create a PR there. An internal engineer with repository access will need to handle that PR.
@TaduJR
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.5.51-1 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
- https://github.com/Expensify/App/pull/107279
If no regressions arise, payment will be issued on 2026-11-28. :confetti_ball:
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
Not Overdue!
Working on follow-ups!
What else do we have to complete here? Isn't this done and just awaiting payment now?
@roryabraham
The follow-ups are a small App + Mobile-Expensify PR pair that I'm finishing:
- Your async/await NAB on
ShareRootPagehttps://github.com/Expensify/App/pull/107279#discussion_r4631966931 - ikevin127's NAB: Android share previews ignore EXIF and video rotation https://github.com/Expensify/App/pull/107279#discussion_r4621781638
Also some three bugs I found during previous PR, and DRY. I can remove the bug fixes if you prefer dedicated issues. I just included then coz there fix was relatively not that complex.