Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/renchap/react-native-36494-repro


https://github.com/renchap/react-native-36494-repro

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

This is a reproduction for https://github.com/facebook/react-native/issues/36494 based on a base RN 0.72 RC1 app.

Reproduction code is in `Repro.tsx`

To repro, launch the app on iOS and see that the `` contains:

> Lorem ipsum dolor sit amet, consectLorem ipsum dolor sit amet, consectetur adipiscing elit

But `value` is initialized with

> Lorem ipsum dolor sit amet, consectetur adipiscing elit

![](SCR-20230413-kkgn.jpeg)

This happens with `multiline` and `maxLenght`, when the initial `value` is longer than `maxLenght / 2`. `onChangeText` and `onChange` are triggered when the component mounts, with `value` prepended to the actual `value` until it fills `maxLenght`.

This does not happen on Android.