microsoft / microsoft/react-native-gallery
[Minor] Rename `colors` variable to `theme` in `useTheme()`
Open
@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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.