Expensify/react-native-live-markdown

Fix `MarkdownTextInput` React ref type

Closed this issue · 0 comments

Currently, MarkdownTextInput component in example app has a ref of type TextInput.

// TODO: use MarkdownTextInput ref instead of TextInput ref
const ref = React.useRef<TextInput>(null);

The objective is to change React ref type from TextInput to MarkdownTextInput.

-React.useRef<TextInput>(null); 
+React.useRef<MarkdownTextInput>(null);