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

feat: support placeholders in Input #225

Merged
merged 4 commits into from
May 2, 2024

Conversation

MounirDhahri
Copy link
Member

@MounirDhahri MounirDhahri commented Apr 30, 2024

Description

This PR comes as a follow-up on artsy/eigen#10167
Here we update the Input component to support arrays - this is in order to fix an issue on android where the input placeholder is not being calculated properly.

[sorry the uploaded didn't work on github]
https://artsy.slack.com/archives/C02BAQ5K7/p1714492481009039?thread_ts=1714138172.001059&cid=C02BAQ5K7

@MounirDhahri MounirDhahri self-assigned this Apr 30, 2024
@artsy-peril artsy-peril bot added the Version: Minor A deploy for new features label Apr 30, 2024
Copy link
Contributor

@araujobarret araujobarret left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this 💪

placeholderWidths.current[index] = event.nativeEvent.layout.width
}}
numberOfLines={1}
style={{
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: style={styles}

src/elements/Input/Input.tsx Outdated Show resolved Hide resolved
src/elements/Input/Input.tsx Outdated Show resolved Hide resolved
src/elements/Input/Input.tsx Outdated Show resolved Hide resolved
MounirDhahri and others added 2 commits May 2, 2024 10:28
@MounirDhahri MounirDhahri merged commit 0f28a21 into main May 2, 2024
6 checks passed
@MounirDhahri MounirDhahri deleted the chore/support-multiple-placeholders branch May 2, 2024 09:06
@artsyit
Copy link
Collaborator

artsyit commented May 2, 2024

🚀 PR was released in v13.2.3 🚀

@artsyit artsyit added the released This issue/pull request has been released. label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released. Version: Minor A deploy for new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants