microsoft / microsoft/react-native-gallery

[Minor] Rename `colors` variable to `theme` in `useTheme()`

Open
#678 0 comments 0 reactions 1 assignee View on GitHub

@anupriya13 is already working on this.

Since Sep 30, 2025.

Dominant language
TypeScript
Stars
257
Forks
57
Avg merge
18h 19m
Merged PRs (30d)
10

Description

This came-up in code review of #654. We want to follow explicit naming for better readability. All instances of

  const {colors} = useTheme();
  // later usage
  colors.border

should be renamed to

  const {theme} = useTheme();
  // later usage
  theme.border

There are too many instances to take it up as part of #654 so creating a separate bug.
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.