Skip to content

Prevent masked input flicker on React Native - #952

Open
Josh Pensky (joshpensky) wants to merge 3 commits into
masterfrom
josh/exp-1179-prevent-input-flicker-in-react-native-masked-input
Open

Prevent masked input flicker on React Native#952
Josh Pensky (joshpensky) wants to merge 3 commits into
masterfrom
josh/exp-1179-prevent-input-flicker-in-react-native-masked-input

Conversation

@joshpensky

@joshpensky Josh Pensky (joshpensky) commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Why

Since we know the length of the masked input value ahead of time, we can add the maxLength prop to our masked inputs to prevent flicker

Before

Screen.Recording.2026-07-23.at.14.01.36.mov

After

Screen.Recording.2026-07-23.at.14.01.04.mov

@joshpensky
Josh Pensky (joshpensky) requested a review from a team as a code owner July 23, 2026 13:11
@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1a76c36

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@evervault/react-native Patch
evervault-expo-example Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment on lines +63 to +65
experiments: {
reactCanary: true,
},

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unexpected side effect of bumping React to 19.2.7

React Native 0.79/Expo 53 is pinned to work with only 19.0.0, so need to enable this experiment so it works with future 19 versions: https://docs.expo.dev/versions/latest/config/app/#reactcanary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant