SlideShare a Scribd company logo
Swipe Right for
NativeScript
Use Big Data from 23AndMe in
a Tinder-style NativeScript app
= find your TRUE MATCH
What is NativeScript?
• A runtime for building and running
native iOS, Android, and (soon)
Windows Phone apps with a single,
JavaScript code base
What’s the difference?
No cross compilation
!=
Direct access to native APIs in JS
No DOM
!=
!=
Why NativeScript?
• Skills reuse
• Standards-based JavaScript, CSS,
optionally TypeScript
• Code reuse
• npm modules, 3rd-party iOS and Android
libraries
• Easily use native APIs
• No wrappers to access native APIs
• Use native UI elements
• Open source!
Swipe Left for NativeScript
NativeScript for iOS
NativeScript for Android
Output:
How does this even?
NativeScript runs JavaScript on
a JavaScript VM
•JavaScriptCore on iOS
•V8 on Android
Swipe Left for NativeScript
Swipe Left for NativeScript
Module Example
But how do I turn this into an
app?
Try it and see!
NativeScript Getting
Started Guide:
http://docs.nativescript.org/
getting-started
Let’s talk about data
23AndMe API + {N}
• Big data to small data – human
genome to Tinder
• Adaptive learning to determine what
you are attracted to
• Use a subset of the data returned to
discover matches
Recipe for an app
• Card interface with swiping
• Authentication with 23AndMe API
• Analyze subset of 23AndMe data
• “Teach the app” user’s likes to narrow
future results
• Create: Tinder for 23AndMe – find
Neanderthal love!
aaa
Show me my DNA relatives with
Neanderthal ancestry
2 API calls:
Get my DNA relatives
https://api.23andme.com/1/relatives/c44
3434949302/
Get a relative’s Neanderthal Ancestry
https://api.23andme.com/1/neanderthal/
d343ie9939405r/
Show me the photo!
Teach the app
{ "id": "7ad467ea509080fb"
"neanderthal":
{ "proportion": 0.0310,
"ancestry": "East Asian",
"average": 0.028,
"percentile": 20 }
}
Track which proportion I tend to swipe
right, find me better matches
Build an interface
<Page loaded="loaded">
<Page.actionBar>
<ActionBar title="Hello!" id="verdict"></ActionBar>
</Page.actionBar>
<StackLayout id="card" class="card”></StackLayout>
</Page>
---
card.on(gestures.GestureTypes.swipe, function (args) { …
card.animate({ translate: { x: 1000, y: 100 } })
.then(function () { return card.animate({ translate: { x: 0,
y: -2000 } }); })
.then(function () { return card.animate({ translate: { x: 0,
y: 0 } }); })…
Swipe Left for NativeScript
Time’s Up!
• About your speaker:
– Name: Jen Looper
– Company: Developer Advocate, Telerik
– Twitter: @jenlooper
– Email: jen.looper@telerik.com
– http://www.ladeezfirstmedia.com
– Quick bio: Jen Looper has over 13 years'
experience as a web and mobile developer,
specializing in creating cross-platform family-
oriented mobile apps. Also hardware!
ThingLearn.com!

More Related Content

PPTX
The Last Saree: AI and Material Culture
PPTX
Computer Science for Kids: A Storytelling Approach
PPTX
Staying Fresh and Avoiding Burnout
PPTX
Game On With NativeScript
PPTX
NativeScript and Angular
PPTX
Sharing Code between Web and Mobile Apps
PDF
Beacons, Plants, Boxes
PPTX
Ignite your app development with Angular, NativeScript and Firebase
The Last Saree: AI and Material Culture
Computer Science for Kids: A Storytelling Approach
Staying Fresh and Avoiding Burnout
Game On With NativeScript
NativeScript and Angular
Sharing Code between Web and Mobile Apps
Beacons, Plants, Boxes
Ignite your app development with Angular, NativeScript and Firebase

More from Jen Looper (13)

PPTX
Hackathon Slides
PPTX
Using Beacons in a Mobile App - IoT Nearables
PPTX
Angular 2 and NativeScript
PPTX
Crafting an Adventure: The Azure Maya Mystery
PPTX
Re-Building a Tech Community - Post Pandemic!
PPTX
Building a Tech Community in Ten Easy Steps
PPTX
Becoming a Green Developer
PPTX
Azure Static Web Apps
PPTX
Creating a Great Workshop
PPTX
The Ethics of Generative AI: A Humanist's Guide
PPTX
Zero to Hipster with the M.I.K.E. Stack
PPTX
Telerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXT
PPTX
Telerik AppBuilder Presentation for TelerikNEXT Conference
Hackathon Slides
Using Beacons in a Mobile App - IoT Nearables
Angular 2 and NativeScript
Crafting an Adventure: The Azure Maya Mystery
Re-Building a Tech Community - Post Pandemic!
Building a Tech Community in Ten Easy Steps
Becoming a Green Developer
Azure Static Web Apps
Creating a Great Workshop
The Ethics of Generative AI: A Humanist's Guide
Zero to Hipster with the M.I.K.E. Stack
Telerik AppBuilder, Estimote Beacons, and the IoT - Presentation for TelerikNEXT
Telerik AppBuilder Presentation for TelerikNEXT Conference
Ad

Recently uploaded (20)

PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPTX
Sustainable Sites - Green Building Construction
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPT
Total quality management ppt for engineering students
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Geodesy 1.pptx...............................................
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PPTX
additive manufacturing of ss316l using mig welding
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Sustainable Sites - Green Building Construction
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Automation-in-Manufacturing-Chapter-Introduction.pdf
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Total quality management ppt for engineering students
Internet of Things (IOT) - A guide to understanding
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Geodesy 1.pptx...............................................
Foundation to blockchain - A guide to Blockchain Tech
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
CYBER-CRIMES AND SECURITY A guide to understanding
6ME3A-Unit-II-Sensors and Actuators_Handouts.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
additive manufacturing of ss316l using mig welding
Ad

Swipe Left for NativeScript

  • 1. Swipe Right for NativeScript Use Big Data from 23AndMe in a Tinder-style NativeScript app = find your TRUE MATCH
  • 2. What is NativeScript? • A runtime for building and running native iOS, Android, and (soon) Windows Phone apps with a single, JavaScript code base
  • 3. What’s the difference? No cross compilation != Direct access to native APIs in JS No DOM != !=
  • 4. Why NativeScript? • Skills reuse • Standards-based JavaScript, CSS, optionally TypeScript • Code reuse • npm modules, 3rd-party iOS and Android libraries • Easily use native APIs • No wrappers to access native APIs • Use native UI elements • Open source!
  • 8. How does this even? NativeScript runs JavaScript on a JavaScript VM •JavaScriptCore on iOS •V8 on Android
  • 12. But how do I turn this into an app?
  • 13. Try it and see! NativeScript Getting Started Guide: http://docs.nativescript.org/ getting-started
  • 15. 23AndMe API + {N} • Big data to small data – human genome to Tinder • Adaptive learning to determine what you are attracted to • Use a subset of the data returned to discover matches
  • 16. Recipe for an app • Card interface with swiping • Authentication with 23AndMe API • Analyze subset of 23AndMe data • “Teach the app” user’s likes to narrow future results • Create: Tinder for 23AndMe – find Neanderthal love!
  • 17. aaa Show me my DNA relatives with Neanderthal ancestry
  • 18. 2 API calls: Get my DNA relatives https://api.23andme.com/1/relatives/c44 3434949302/ Get a relative’s Neanderthal Ancestry https://api.23andme.com/1/neanderthal/ d343ie9939405r/ Show me the photo!
  • 19. Teach the app { "id": "7ad467ea509080fb" "neanderthal": { "proportion": 0.0310, "ancestry": "East Asian", "average": 0.028, "percentile": 20 } } Track which proportion I tend to swipe right, find me better matches
  • 20. Build an interface <Page loaded="loaded"> <Page.actionBar> <ActionBar title="Hello!" id="verdict"></ActionBar> </Page.actionBar> <StackLayout id="card" class="card”></StackLayout> </Page> --- card.on(gestures.GestureTypes.swipe, function (args) { … card.animate({ translate: { x: 1000, y: 100 } }) .then(function () { return card.animate({ translate: { x: 0, y: -2000 } }); }) .then(function () { return card.animate({ translate: { x: 0, y: 0 } }); })…
  • 22. Time’s Up! • About your speaker: – Name: Jen Looper – Company: Developer Advocate, Telerik – Twitter: @jenlooper – Email: [email protected] – http://www.ladeezfirstmedia.com – Quick bio: Jen Looper has over 13 years' experience as a web and mobile developer, specializing in creating cross-platform family- oriented mobile apps. Also hardware! ThingLearn.com!

Editor's Notes

  • #7: This JavaScript code instantiates an Objective-C UIAlertView class, sets its message property, and then calls its addButtonWithTitle() and show() methods. When you run a NativeScript iOS app with this code you'll see the alert "hello world!"
  • #8: this JavaScript code instantiates a Java android.text.format.Time() object, calls its set() method, then logs the return value of its format() method, which is the string "01/01/15".
  • #15: Big data? Small data? All data! A mobile app can consume big data via an API, but it has to be presented in bite-sized pieces. Let’s use the big data of 23AndMe (DNA mapping) in a little bitty mobile app