[TIMOB-14221] Code Refactor for thread safety
[TIMOB-14221] Refactor
Merge pull request #4790 from vishalduggal/timob-14221

[TIMOB-14221] iOS: setSelection API accesses views on JS thread