package Ġcom . react nat iven avigation . view controllers . view controller Ċ Ċ import Ġcom . facebook . react . React Instance Manager Ċ import Ġcom . facebook . react . modules . i 1 8 n manager . I 1 8 n Util Ċ import Ġcom . react nat iven avigation . options . Options Ċ Ċ class ĠLayout Direction App lier Ġ{ ĊĠĠĠ Ġfun Ġapply ( root : ĠView Controller <* >, Ġoptions : ĠOptions , Ġinstance Manager : ĠReact Instance Manager ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( options . layout . direction . hasValue () Ġ&& Ġinstance Manager . current React Context Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġroot . activity . window . decor View . layout Direction Ġ= Ġoptions . layout . direction . get () ĊĠĠĠĠĠĠĠĠĠĠĠ ĠI 1 8 n Util . getInstance (). allow RTL ( instance Manager . current React Context , Ġoptions . layout . direction . is R tl ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠI 1 8 n Util . getInstance (). force RTL ( instance Manager . current React Context , Ġoptions . layout . direction . is R tl ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }