* change(android): added android support * change(git): Remove .yarn from version control * change(git): Remove .yarn from version control * change(rn-tracker): android view fixes * change(tracker): yarn * fix rn: fix ios config for react native * ios source changes * change(lib): tracker manager * change(lib): layout fixes * change(lib): layout fixes * fix default api endp --------- Co-authored-by: Shekar Siri <sshekarsiri@gmail.com>
24 lines
475 B
Swift
24 lines
475 B
Swift
import Openreplay
|
|
|
|
@objc(RnTrackedInputManager)
|
|
class RnTrackedInputManager: RCTViewManager {
|
|
|
|
override func view() -> (RnTrackedInput) {
|
|
return RnTrackedInput()
|
|
}
|
|
|
|
@objc override static func requiresMainQueueSetup() -> Bool {
|
|
return true
|
|
}
|
|
}
|
|
|
|
|
|
class RnTrackedInput : UITextField {
|
|
override func didMoveToSuperview() {
|
|
super.didMoveToSuperview()
|
|
|
|
if superview != nil {
|
|
Analytics.shared.addObservedInput(self)
|
|
}
|
|
}
|
|
}
|