Skip to content

Conversation

CrisTofani
Copy link
Contributor

Short description

This PR replaces react-native-screenshot-prevent with react-native-capture-protection. This replacement is due for future enabling of Fabric architecture on react-native.

List of changes proposed in this pull request

  • Changes usePreventScreenCapture hook
  • fixes jest mocks

How to test

Check the screenshots to be properly prevented on screens with the hook.

Copy link
Contributor

github-actions bot commented Oct 8, 2025

Jira Pull Request Link

This Pull Request refers to Jira issues:

Copy link
Contributor

github-actions bot commented Oct 8, 2025

PR Title Validation for conventional commit type

All good! PR title follows the conventional commit type.

Copy link

codecov bot commented Oct 8, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 48.90%. Comparing base (3429391) to head (828c6c6).

Files with missing lines Patch % Lines
ts/utils/hooks/usePreventScreenCapture.ts 0.00% 3 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (3429391) and HEAD (828c6c6). Click for more details.

HEAD has 4 uploads less than BASE
Flag BASE (3429391) HEAD (828c6c6)
10 6
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #7452       +/-   ##
===========================================
- Coverage   59.38%   48.90%   -10.48%     
===========================================
  Files        1823     1658      -165     
  Lines       39232    36169     -3063     
  Branches     8948     8307      -641     
===========================================
- Hits        23297    17689     -5608     
- Misses      15866    18412     +2546     
+ Partials       69       68        -1     
Files with missing lines Coverage Δ
ts/utils/hooks/usePreventScreenCapture.ts 50.00% <0.00%> (-50.00%) ⬇️

... and 546 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3429391...828c6c6. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant