package Ġcom . map x us . map . components . location Ċ Ċ import Ġcom . facebook . react . bridge . React ApplicationContext Ċ import Ġcom . facebook . react . common . Map Builder Ċ import Ġcom . facebook . react . u im an ager . The med React Context Ċ import Ġcom . facebook . react . u im an ager . annotations . React Prop Ċ import Ġcom . map x us . map . components . Abstract EventEmitter Ċ import Ġcom . map x us . map . events . constants . Event Keys Ċ import Ġcom . map x us . map . location . User Tracking Mode Ċ import Ġcom . map x us . map . map x us map . api . map . Follow User Mode Ċ Ċ /** Ċ Ġ* ĠCreated Ġby ĠE dis on Ġon Ġ 3 / 2 9 / 2 1 . Ċ Ġ* ĠDescribe : Ċ Ġ*/ Ċ private Ġconst Ġval ĠRE ACT _ CLASS Ġ= Ġ" RCT Map x us Location " Ċ Ċ class ĠR CT Map x us Location Manager Ġ( react ApplicationContext : ĠReact ApplicationContext ): ĠAbstract EventEmitter < RCT Map x us Location >( react ApplicationContext ){ ĊĠĠĠ Ġoverride Ġfun ĠgetName (): ĠString Ġ= ĠRE ACT _ CLASS ĊĊĠĠĠ Ġoverride Ġfun Ġcreate View Instance ( react Context : ĠThe med React Context ): ĠR CT Map x us Location Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠR CT Map x us Location ( react Context , Ġthis ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ React Prop ( name Ġ= Ġ" follow User Mode ") ĊĠĠĠ Ġfun Ġset Follow User Mode ( location : ĠR CT Map x us Location , Ġfollow User Mode : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlocation . set Follow User Mode ( when ( follow User Mode ){ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠUser Tracking Mode . NONE Ġ-> ĠFollow User Mode . NONE ĊĠĠĠĠĠĠĠĠĠĠĠ ĠUser Tracking Mode . FOLLOW Ġ-> ĠFollow User Mode . FOLLOW _ USER ĊĠĠĠĠĠĠĠĠĠĠĠ ĠUser Tracking Mode . Follow With Heading Ġ-> ĠFollow User Mode . FOLLOW _ USER _ AND _ HEAD ING ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse Ġ-> ĠFollow User Mode . FOLLOW _ USER ĊĠĠĠĠĠĠĠ Ġ}) ĊĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcustom Events (): ĠMutable Map < String , ĠString > Ġ= ĠMap Builder . builder < String , ĠString >() ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. put ( Event Keys . MAP X US _ USER _ LOCATION _ UPDATE , Ġ" on User Location Change ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () Ċ }