Skip to content

Fix React Native imports with a read-only window global - #744

Merged
regnerus merged 1 commit into
developfrom
fix/react-native-window
Oct 20, 2026
Merged

regnerus merged 1 commit into
developfrom
fix/react-native-window

Conversation

@regnerus

@regnerus regnerus commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor
  • Loading Homey Lib in React Native can crash because the window global is read-only.
  • Read the existing global without reassigning it, preserving webpack exports and the window.HomeyLib fallback.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@regnerus
regnerus requested review from RobinBol and a balanced review from Copilot October 19, 2026 13:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change removes the read-only assignment failure with no identified blocking issues.

No open issues 🎉

What changed in this PR

Fixes React Native imports when the window global is read-only.

Changes:

  • Reads the existing global without assigning to it.
  • Retains webpack exports and the HomeyLib fallback.
File Description
react-native/​index.js Replaces the global assignment with a local reference used by the fallback export.

Review effort: Balanced

@regnerus
regnerus merged commit a5ebb0f into develop Oct 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants