Skip to content

Commit

Permalink
[Example] Fix counter being editable (#5692)
Browse files Browse the repository at this point in the history
## Summary

Currently the counter is editable - meaning, the user can put in some
value from keyboard - which doesn't make a lot of sense.

## Test plan

🔢
  • Loading branch information
tjzel authored Feb 20, 2024
1 parent 69fed0e commit 2e80dad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/examples/CounterExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ export default function CounterExample() {
<View style={styles.buttons}>
<Button onPress={handleToggle} title="Toggle" />
</View>
<AnimatedTextInput animatedProps={animatedProps} style={styles.text} />
<AnimatedTextInput
animatedProps={animatedProps}
style={styles.text}
editable={false}
/>
</>
);
}
Expand Down

0 comments on commit 2e80dad

Please sign in to comment.