Summary
Is there a way to expose some modules from the iOS native part of the app from Swift or ObjectiveC?
Pre-2.0 version I was able to achieve that with
import Segment
class Track {
  static func track(event: String, properties: [String : Any]?) {
    Analytics.shared().track(event, properties: properties);
  }
}
The workaround seems to add Analytics for iOS separately.  Is there a good way to share identity between 2 clients?
Proposed Solution
Expose some of the javascript methods so they can be called from ObjectiveC or Swift side of the app.