Skip to content

Commit 97fd704

Browse files
docs: update readme
1 parent 24f9910 commit 97fd704

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ TextInput component that allows transforming text synchronously with a worklet.
44

55
## Motivation
66

7-
Transforming input as users type is commonphone numbers, credit cards, usernames. Existing approaches have trade-offs:
7+
Transforming input as users type is commonphone numbers, credit cards, usernames. Existing approaches have trade-offs:
88

99
**Pattern-based masking** (e.g., [react-native-advanced-input-mask](https://github.com/IvanIhnatsiuk/react-native-advanced-input-mask)) uses declarative patterns like `+1 ([000]) [000]-[0000]`. This works well for fixed formats, but patterns can't express conditional logic, variable-length formats, or transformations that depend on context.
1010

1111
**Controlled inputs** (`value` + `onChangeText` + state) give you full JS flexibility, but create a native → JS → re-render → native round-trip. This causes visible lag and cursor flicker—the input feels sluggish because keystrokes are corrected asynchronously.
1212

13-
**This library** combines JS flexibility with synchronous execution. Your transform runs as a worklet on the UI threadno bridge delay, no flicker. Write any logic you need with the responsiveness of a native input.
13+
**This library** combines JS flexibility with synchronous execution. Your transform runs as a worklet on the UI threadno bridge delay, no flicker. Write any logic you need with the responsiveness of a native input.
1414

1515
## Installation
1616
```sh

0 commit comments

Comments
 (0)