Skip to content

refactor: remove unused useEffect for theme application in StyleExamp… #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2025

Conversation

mCodex
Copy link
Owner

@mCodex mCodex commented Jul 23, 2025

This pull request makes a small change to the StyleExample component by removing an unused useEffect hook that contained a comment about theme application. This cleanup simplifies the code and reflects that theme handling is now managed elsewhere ([example/src/components/StyleExample.tsxL245-L249](https://github.com/mCodex/react-native-plugpag-nitro/pull/3/files#diff-5e6e7ae83ff89fb841fa8a3b60d200b4f1356c92c57310e085e3c47aa8652009L245-L249)).

@Copilot Copilot AI review requested due to automatic review settings July 23, 2025 13:30
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request removes an unused useEffect hook from the StyleExample component that was previously used for theme application. The effect is no longer needed since theme application is now handled automatically by App.tsx on startup, and this component only manages manual theme switching.

@mCodex mCodex merged commit 400edce into main Jul 23, 2025
2 of 4 checks passed
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