Skip to content

Conversation

@cjbell
Copy link
Contributor

@cjbell cjbell commented Jan 14, 2026

Description

Cleaned up the KnockExpoPushNotificationProvider to be more readable and try and clean up some of the useEffects that existed that I suspect were the source of the bugs we've been seeing.

Introduces more ways to access the expo projectId to ensure it's loaded correctly for all Expo projects from 46+.

@linear
Copy link

linear bot commented Jan 14, 2026

@changeset-bot
Copy link

changeset-bot bot commented Jan 14, 2026

🦋 Changeset detected

Latest commit: 4c64f0d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@knocklabs/expo Patch
@knocklabs/expo-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jan 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
javascript-ms-teams-connect-example Ready Ready Preview, Comment Jan 14, 2026 4:04am
javascript-nextjs-example Ready Ready Preview, Comment Jan 14, 2026 4:04am
javascript-slack-connect-example Ready Ready Preview, Comment Jan 14, 2026 4:04am
javascript-slack-kit-example Ready Ready Preview, Comment Jan 14, 2026 4:04am

@cjbell cjbell requested review from a team, kylemcd and mattmikolay January 14, 2026 03:58
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 90.22989% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 67.84%. Comparing base (3b914ed) to head (4c64f0d).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
packages/expo/src/modules/push/utils.ts 84.78% 14 Missing ⚠️
...modules/push/KnockExpoPushNotificationProvider.tsx 96.29% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #823      +/-   ##
==========================================
+ Coverage   67.33%   67.84%   +0.51%     
==========================================
  Files         189      190       +1     
  Lines        7928     7934       +6     
  Branches     1024     1041      +17     
==========================================
+ Hits         5338     5383      +45     
+ Misses       2565     2526      -39     
  Partials       25       25              
Files with missing lines Coverage Δ
packages/expo/src/modules/push/index.ts 100.00% <100.00%> (ø)
...modules/push/KnockExpoPushNotificationProvider.tsx 96.05% <96.29%> (+20.73%) ⬆️
packages/expo/src/modules/push/utils.ts 84.78% <84.78%> (ø)

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