EnergieDirect mobile app

Technical

Requirements

 

  • Native performance
  • A framework that fits Essent's frontend road map.

EnergieDirect mobile app

NativeScript

Native API's

Native API's

Example

Scrolling

Android API

iOS API

Scrolling

let timeline = this.timelineRef.nativeElement;
        
if( ios ) {   

    let position = UITableViewScrollPosition.UITableViewScrollPositionMiddle;
    let animated = false;
    let nsIndex = NSIndexPath.indexPathForItemInSection(index, 0);
    timeline.ios.scrollToRowAtIndexPathAtScrollPositionAnimated(nsIndex, position, animated);

} else( android ) {

    let itemHeight = timeline.android.getChildAt(index).getHeight(); 
    let offset = timeline.android.getHeight() / 2 - itemHeight / 2;
    timeline.android.smoothScrollToPositionFromTop(index, offset, 0);

}

Scrolling

Demo

Questions?

Battle of the Front-end frameworks

Made with Slides.com