Page MenuHomePhabricator

[lib][native] add useVersionSupportedByIdentity hook and use it on native
ClosedPublic

Authored by varun on Wed, Jun 12, 8:22 AM.

Details

Summary

we should avoid calling commRustModule directly from VersionSupportedChecker

Depends on 12405

Test Plan

ran the iOS simulator and confirmed that the VERSION_SUPPORTED_BY_IDENTITY_STARTED and VERSION_SUPPORTED_BY_IDENTITY_SUCCESS actions were dispatched.

modified staging identity to set the min supported version to 1000, confirmed that the alert was displayed on simulator

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

varun requested review of this revision.Wed, Jun 12, 8:46 AM
ashoat added inline comments.
lib/types/redux-types.js
1500 ↗(On Diff #41244)

Making the payload an object makes it easier to modify later

This revision is now accepted and ready to land.Wed, Jun 12, 9:49 AM

make success payload an object