Skip to content

Conversation

@akfreas
Copy link
Collaborator

@akfreas akfreas commented Jan 20, 2026

Adds:

  • Reachability support for online/offline status using optional @react-native-community/netinfo package
  • Passes reachability status via online() when state changes
  • E2E and unit tests for these, using the runAdbShell command to simulate airplane mode during testing

The @react-native-community/netinfo is optional because it's a native module that developers may not be interested in adding to their project. We handle this by loading the module using require and then no-op when it's not present.

@akfreas akfreas force-pushed the NT-2003-add-rn-offline-behavior branch from ada9422 to b24b590 Compare January 20, 2026 19:25
@wiz-inc-38d59fb8d7
Copy link

wiz-inc-38d59fb8d7 bot commented Jan 20, 2026

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities 2 High 6 Medium 3 Low
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations -
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 2 High 6 Medium 3 Low

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@akfreas akfreas changed the title Nt 2003 add rn offline behavior [NT-2003] Add React Native offline behavior Jan 21, 2026
@akfreas akfreas marked this pull request as ready for review January 21, 2026 14:55
@akfreas akfreas force-pushed the NT-2003-add-rn-offline-behavior branch from f389f0b to 79ab2cf Compare January 22, 2026 12:19
@akfreas akfreas force-pushed the NT-2003-add-rn-offline-behavior branch from 40e7e61 to 3e852a2 Compare January 23, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants