Skip to content
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

[expo-linear-gradient] Make colors and locations arrays readonly #28450

Merged

Conversation

kowczarz
Copy link
Contributor

@kowczarz kowczarz commented Apr 25, 2024

Why

This change allows users to pass readonly arrays as props without redundantly copying it before.

How

Changed colors and locations types to readonly.

Test Plan

Checklist

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Apr 25, 2024
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Apr 25, 2024
@kowczarz kowczarz force-pushed the make-colors-and-locations-arrays-readonly branch from 9a5f18c to cebca06 Compare April 25, 2024 10:51
@kowczarz kowczarz marked this pull request as ready for review April 25, 2024 10:55
Copy link
Contributor

@lukmccall lukmccall left a comment

Choose a reason for hiding this comment

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

LGTM ✅

packages/expo-linear-gradient/CHANGELOG.md Show resolved Hide resolved
Co-authored-by: Łukasz Kosmaty <kosmatylukasz@gmail.com>
@lukmccall lukmccall merged commit 8ecdde5 into expo:main Apr 30, 2024
10 checks passed
@brentvatne brentvatne added the published Changes from the PR have been published to npm label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants