Skip to content

Sumeru / #770 - Fix implicit dependency on @react-navigation/native#850

Open
sumeruchat wants to merge 1 commit intomasterfrom
sumeru/770-optional-react-navigation-dependency
Open

Sumeru / #770 - Fix implicit dependency on @react-navigation/native#850
sumeruchat wants to merge 1 commit intomasterfrom
sumeru/770-optional-react-navigation-dependency

Conversation

@sumeruchat
Copy link
Copy Markdown

Summary

  • Makes @react-navigation/native an optional dependency instead of an implicit hard requirement
  • Apps without React Navigation will no longer fail to build

Test plan

  • Build without @react-navigation/native installed
  • Build with @react-navigation/native installed
  • Verify IterableInbox works correctly with React Navigation

🤖 Generated with Claude Code

The SDK imported `useIsFocused` directly from `@react-navigation/native`
in the IterableInbox component, causing build failures for apps that do
not use React Navigation. This change introduces a wrapper hook that
tries to load `useIsFocused` from `@react-navigation/native` at module
load time and falls back to always returning `true` when the package is
not installed. The peer dependency is also marked as optional in
peerDependenciesMeta.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sumeruchat sumeruchat self-assigned this Apr 7, 2026
@sumeruchat sumeruchat added the Experimental Experimental fix generated by AI label Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Experimental Experimental fix generated by AI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants