GeekyAnts / GeekyAnts/NativeBase

`multiline` and `value` on the same TextArea causes input letters to be continuously added and deleted

Open
#5,809 2 comments 0 reactions 0 assignees View on GitHub
bug triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

I have a component with both `value={myVariable}` and `multiline`. When both are present, and I type a character into that input box, the character is continuously added and deleted in a loop. If I remove either input, the behavior works as expected, which is every character I type is added once

### CodeSandbox/Snack link

https://snack.expo.dev/Q5QFYFkPBBHXotrEDeVN_

### Steps to reproduce

1. Set up a component like this:

...

const [myVariable, setMyVariable] = useState<string>('');

...

<TextArea
multiline
defaultValue={myVariable}
onChangeText={setMyVariable}
autoCompleteType={undefined}
/>

2. Type a letter into that input

### NativeBase Version

3.4.28

### Platform

- [ ] Android
- [ ] CRA
- [ ] Expo
- [X] iOS
- [ ] Next

### Other Platform

_No response_

### Additional Information

Could not get the issue to repro in Snack. Using VSCode, iOS 17.4, native-base 3.4.28

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.