mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 20:01:56 +03:00
android clear crash issue fix
This commit is contained in:
parent
4030af2dd6
commit
2fcb84623e
@ -119,13 +119,22 @@ const MarkdownEditorView = ({
|
|||||||
inputRef.current.setNativeProps({
|
inputRef.current.setNativeProps({
|
||||||
text: _text,
|
text: _text,
|
||||||
});
|
});
|
||||||
|
|
||||||
// Workaround for iOS selection update issue
|
// Workaround for iOS selection update issue
|
||||||
setTimeout(() => {
|
const isIos = Platform.OS === 'ios';
|
||||||
|
if (isIos) {
|
||||||
|
setTimeout(() => {
|
||||||
|
inputRef.current.setNativeProps({
|
||||||
|
selection: _selection,
|
||||||
|
});
|
||||||
|
setSelection(_selection);
|
||||||
|
}, 200);
|
||||||
|
} else {
|
||||||
inputRef.current.setNativeProps({
|
inputRef.current.setNativeProps({
|
||||||
selection: _selection,
|
selection: _selection,
|
||||||
});
|
});
|
||||||
setSelection(_selection);
|
setSelection(_selection);
|
||||||
}, 200);
|
}
|
||||||
_changeText(_text);
|
_changeText(_text);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user