Expensify/react-native-live-markdown

Height jump when typing first character of heading on Android

Closed this issue · 1 comments

231ecfe + Android + Paper

recording3.mov

Note that a similar issue also occurs for a regular TextInput component from React Native:

RNTextInput.jump.mov

Solution: apply formatting in onTextChanged method instead of afterTextChanged. Note that onTextChanged callback cannot modify text because React Native stores the length and tries to call substring with greater length which causes a crash.

Fixed in ce387e8