Skip to content

refactor: don't inject package context#983

Merged
kirillzyusko merged 2 commits intomainfrom
refactor/do-not-inject-package-context
Jun 16, 2025
Merged

refactor: don't inject package context#983
kirillzyusko merged 2 commits intomainfrom
refactor/do-not-inject-package-context

Conversation

@kirillzyusko
Copy link
Copy Markdown
Owner

@kirillzyusko kirillzyusko commented Jun 15, 2025

📜 Description

Don't pass reactContext from createViewManagers to a real view managers.

💡 Motivation and Context

This seems to be a rudiment - for some reasons I had that code in the past, but now it seems completely unused and only pollutes Android Studio warnings that variable is unused.

I don't see any use cases where it would be actually used, so in this PR I'm removing that approach and now all magers are context-aware-free 🎉

📢 Changelog

Android

  • don't pass reactContext from createViewManagers to a real view managers.

🤔 How Has This Been Tested?

Tested via CI.

📸 Screenshots (if appropriate):

image

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko self-assigned this Jun 15, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 15, 2025

📊 Package size report

Current size Target Size Difference
200351 bytes 200388 bytes -37 bytes 📉

@kirillzyusko kirillzyusko added 🤖 android Android specific refactor You changed the code but it didn't affect functionality labels Jun 15, 2025
@kirillzyusko kirillzyusko merged commit c8398fc into main Jun 16, 2025
16 checks passed
@kirillzyusko kirillzyusko deleted the refactor/do-not-inject-package-context branch June 16, 2025 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 android Android specific refactor You changed the code but it didn't affect functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant