SlideShare a Scribd company logo
Building UWP apps with React-Native
Building UWP apps
with React Native
Who am I?
Maurice de Beijer
The Problem Solver
Microsoft Azure MVP
Freelance developer/instructor
Twitter: @mauricedb & @React_Tutorial
Web: http://www.TheProblemSolver.nl
E-mail: maurice.de.beijer@gmail.com
What are we ging to
cover?
What is React?
What is React Native?
What is the Universal Windows Platform (UWP)?
Building React Native UWP apps
What is React
React is a JavaScript library for creating user interfaces
Runs in the browser
Compose components into the user interface
Declarative
Unidirectional data ຨow
 25. ReactDOM.render(
 26.   <App/>, document.getElementById('root'));
 14. export class App extends Component {
 15.   render() {
 16.     return (
 17.       <div>
 18.         <Hello name={'Maurice'}/>
 19.       </div>
 20.     );
 21.   }
 22. }
 23. 
 24. 
 27. 
Use ReactDOM.render() to run the application
What is React Native
A framework for building native apps using React
Build on top of React
Target mobile devices
Android
IOS
 25. AppRegistry.registerComponent('Hello‐World', 
 26.   () => App);
 14. 
 15. export class App extends Component {
 16.   render() {
 17.     return (
 18.       <View>
 19.         <Hello name={'Maurice'}/>
 20.       </View>
 21.     );
 22.   }
 23. }
 24. 
 27. 
Use AppRegistry.registerComponent() to run the
application
Universal Windows
Platform (UWP)
A common app platform for Windows applications
Targets every Windows 10 device
Create a single app package
One Windows Store targets all devices
Building UWP apps with React-Native
React Native & UWP
Contributed as OSS by Microsoft
Announced at Facebooks F8 2016 conference
Windows 10 (Mobile) and Xbox One
Uses ChakraCore as the JavaScript engine
Extensions for Visual Studio Code
  5. react‐native run‐windows
  1. npm install ‐‐save‐dev rnpm‐plugin‐windows
  2. 
  3. react‐native windows
  4. 
Run the UWP Windows 10 app
What is added?
Entry point for the RN app: index.windows.js
The react-native-windows NPM package
Visual Studio 2015 Solution and Project
VS2015 Community will work
Building UWP apps with React-Native
Building UWP apps with React-Native
 53. AppRegistry.registerComponent('ReactNLMovies', 
 54.   () => ReactNLMovies);
 42.     fontSize: 20,
 43.     textAlign: 'center',
 44.     margin: 10,
 45.   },
 46.   instructions: {
 47.     textAlign: 'center',
 48.     color: '#333333',
 49.     marginBottom: 5,
 50.   },
 51. });
 52. 
The same AppRegistry.registerComponent() to run
  5. Uses header.windows.js or header.js on Windows
  1. import {Header} from './header';
  2. 
  3. Uses header.android.js or header.js on Android
  4. 
On Windows
 25.                 <ToolbarAndroid
 26.                     title='ReactNL Movies'
 27.                     navIconName={navIconName}
 28.                     onIconClicked=
 29.                         {this.props.navigator.pop}
 30.                     style={styles.toolbar}>
 31.                 </ToolbarAndroid>
 18.         let navIconName = null;
 19.         if (this.props.showBackButton) {
 20.             navIconName = 'md‐arrow‐back';
 21.         }
 22. 
 23.         return (
 24.             <View>
 32.             </View>
 33.         );
 34.     }
 35. }Using a native Android component
 30.                 <View style={styles.toolbar}>
 31.                     {navIcon}
 32.                     <Text style={styles.header}>
 33.                         ReactNL Movies
 34.                     </Text>
 35.                 </View>
 24.                             onPress=
{this.props.navigator.pop}>ᾆ
 25.             </Text>
 26.         }
 27. 
 28.         return (
 29.             <View>
 36.             </View>
 37.         );
 38. 
 39.         //
 40.     }
 41. }
Using a cross platfom component
 22. BackAndroid.addEventListener('hardwareBackPress', 
() => {
 23.     let routs = theNavigator.getCurrentRoutes();
 24. 
 25.     if (routes.length === 1) {
 26.         // Not handled by us
 27.         return false;
 28.     }
 29. 
 30.     theNavigator.pop();
 31.     return true;
 32. });
 18. });
 19. 
 20. let theNavigator = null;
 21. 
 33. 
 34. export class MainWindow extends Component {
 35.     static navigator
 36. 
 37.     renderScene(route, navigator) {
 38.         theNavigator = navigator;
Will be replaced by BackWindows!
Using the UWP SplitViewWindows
  1. import React, {Component} from 'react';
  2. import {
  3.     StyleSheet, 
  4.     View, 
  5.     Text, 
  6.     TouchableHighlight} from 'react‐native';
  7. import {
  8.     FlipViewWindows, 
  9.     SplitViewWindows
 10. } from 'react‐native‐windows';
 11. import {MoviesList} from './movies‐list';
Maurice de Beijer - @mauricedb
Building UWP apps with React-Native

More Related Content

PDF
The productive developer guide to React
PDF
Is React reactive?
PPTX
Nodejsvs
PDF
Micro Frontends
PDF
Lviv MD Day 2015 Іван Лаврів "Mobile development with React Native"
PDF
Putting the Native in React Native - React Native Boston
PDF
Java microservicesspringbootcasestudy2
The productive developer guide to React
Is React reactive?
Nodejsvs
Micro Frontends
Lviv MD Day 2015 Іван Лаврів "Mobile development with React Native"
Putting the Native in React Native - React Native Boston
Java microservicesspringbootcasestudy2

What's hot (20)

PDF
Intro to react native
PPTX
Say hello to react js - Day 1
PDF
Vue3: nuove funzionalità, differenze e come migrare
PPT
Js frameworks
PPTX
Grails Spring Boot
PDF
Use html5 to build what you want, where you want it
PPTX
Slides of webinar Kendo UI and Knockout.js
PDF
Spring Boot Tutorial | Microservices Spring Boot | Microservices Architecture...
PDF
The A1 by Christian John Felix
PPT
Progressive Web Apps - Up & Running
PPTX
Progressive web apps
PPTX
Meteor-nepal introduction to meteor
PDF
Testing apps with MTM and Tea Foundation Service
PPTX
Sony lazuardi native mobile app with javascript
PDF
React Native in a nutshell
PDF
Bootiful Development with Spring Boot and Angular - RWX 2018
PDF
Jquery react angular
PPTX
Angular 9 New features
PDF
Full Stack Vs Mean Stack Vs MERN Stack Comparison & Benefits
PPTX
Frameworks in java
Intro to react native
Say hello to react js - Day 1
Vue3: nuove funzionalità, differenze e come migrare
Js frameworks
Grails Spring Boot
Use html5 to build what you want, where you want it
Slides of webinar Kendo UI and Knockout.js
Spring Boot Tutorial | Microservices Spring Boot | Microservices Architecture...
The A1 by Christian John Felix
Progressive Web Apps - Up & Running
Progressive web apps
Meteor-nepal introduction to meteor
Testing apps with MTM and Tea Foundation Service
Sony lazuardi native mobile app with javascript
React Native in a nutshell
Bootiful Development with Spring Boot and Angular - RWX 2018
Jquery react angular
Angular 9 New features
Full Stack Vs Mean Stack Vs MERN Stack Comparison & Benefits
Frameworks in java
Ad

Viewers also liked (20)

ODP
Сравнение AMQP и ZeroMQ
PDF
Zmq in context of openstack
PPTX
React Native Intro
PPTX
React native. Bridge From Web To Mobile. Intro
KEY
深入淺出RoR
PDF
Introduction to React Native
PDF
React Native + Redux
PPTX
React native vol3
PDF
Navigation in React Native
PPTX
GoogleTagManagerを使ってタグ運用を楽にしませんか?
PDF
Styling React Native Applications
PDF
React Native Firebase Realtime Database + Authentication
PPTX
React Native
PDF
ReactJS presentation
PDF
Intro to React - Featuring Modern JavaScript
PDF
A tour of React Native
PDF
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
PDF
React Native
PPTX
Intro to React
PDF
Intro To React Native
Сравнение AMQP и ZeroMQ
Zmq in context of openstack
React Native Intro
React native. Bridge From Web To Mobile. Intro
深入淺出RoR
Introduction to React Native
React Native + Redux
React native vol3
Navigation in React Native
GoogleTagManagerを使ってタグ運用を楽にしませんか?
Styling React Native Applications
React Native Firebase Realtime Database + Authentication
React Native
ReactJS presentation
Intro to React - Featuring Modern JavaScript
A tour of React Native
React Native Introduction: Making Real iOS and Android Mobile App By JavaScript
React Native
Intro to React
Intro To React Native
Ad

Similar to Building UWP apps with React-Native (20)

PPTX
React native starter
PDF
Introduzione a React Native - Facebook Developer Circle Rome
PPTX
Introduction to React Native
PDF
React native app development reasons to adopt and key aspects to consider
PPTX
React Native for ReactJS Devs
PDF
An Introduction to ReactNative
PPTX
Introduction to react native @ TIC NUST
PDF
Understanding Flexbox Layout in React Native.pdf
PDF
React native
PDF
From zero to hero with React Native!
PDF
An Emoji Introduction to React Native (Panagiotis Vourtsis, Senior Front End ...
PDF
React native: building native iOS apps with javascript
PPTX
Introduction to React Native
PDF
Introduction to React Native
PDF
Introduction to React Native
PDF
Webinar - Matteo Manchi: Dal web al nativo: Introduzione a React Native
PDF
Building an App for Mobile and Web with Expo
PDF
Matteo Manchi - React Native for multi-platform mobile applications - Codemot...
PDF
React Native Workshop - React Alicante
PDF
Learning React Native Building Native Mobile Apps With Javascript 2nd Edition...
React native starter
Introduzione a React Native - Facebook Developer Circle Rome
Introduction to React Native
React native app development reasons to adopt and key aspects to consider
React Native for ReactJS Devs
An Introduction to ReactNative
Introduction to react native @ TIC NUST
Understanding Flexbox Layout in React Native.pdf
React native
From zero to hero with React Native!
An Emoji Introduction to React Native (Panagiotis Vourtsis, Senior Front End ...
React native: building native iOS apps with javascript
Introduction to React Native
Introduction to React Native
Introduction to React Native
Webinar - Matteo Manchi: Dal web al nativo: Introduzione a React Native
Building an App for Mobile and Web with Expo
Matteo Manchi - React Native for multi-platform mobile applications - Codemot...
React Native Workshop - React Alicante
Learning React Native Building Native Mobile Apps With Javascript 2nd Edition...

More from Maurice De Beijer [MVP] (20)

PPTX
Full-stack App in half a Day: Next.js 15 Development Bootcamp
PPTX
Production-ready Next.js App with Cursor AI
PPTX
Building Robust Web Applications with Test-Driven Development and Playwright:...
PDF
Mastering React Server Components and Server Actions in React 19
PPTX
Practice TypeScript Techniques Building React Server Components App
PPTX
A foolproof Way to Estimate a Software Project
PPTX
Surati Tech Talks 2022 / Build reliable Svelte applications using Cypress
PPTX
Build reliable Svelte applications using Cypress
PPTX
Building Reliable Applications Using React, .NET & Azure
PPTX
Concurrent Rendering Adventures in React 18
PPTX
Building reliable applications with React, C#, and Azure
PPTX
Building large and scalable mission critical applications with React
PPTX
Building Reliable Applications Using React, .NET & Azure
PPTX
Why I am hooked on the future of React
PPTX
Building reliable web applications using Cypress
PPTX
Getting started with React Suspense and concurrent rendering
PPTX
React suspense, not just for Alfred Hitchcock
PPTX
From zero to hero with the Reactive extensions for JavaScript
PPTX
Why I am hooked on the future of React
PPTX
The new React
Full-stack App in half a Day: Next.js 15 Development Bootcamp
Production-ready Next.js App with Cursor AI
Building Robust Web Applications with Test-Driven Development and Playwright:...
Mastering React Server Components and Server Actions in React 19
Practice TypeScript Techniques Building React Server Components App
A foolproof Way to Estimate a Software Project
Surati Tech Talks 2022 / Build reliable Svelte applications using Cypress
Build reliable Svelte applications using Cypress
Building Reliable Applications Using React, .NET & Azure
Concurrent Rendering Adventures in React 18
Building reliable applications with React, C#, and Azure
Building large and scalable mission critical applications with React
Building Reliable Applications Using React, .NET & Azure
Why I am hooked on the future of React
Building reliable web applications using Cypress
Getting started with React Suspense and concurrent rendering
React suspense, not just for Alfred Hitchcock
From zero to hero with the Reactive extensions for JavaScript
Why I am hooked on the future of React
The new React

Recently uploaded (20)

DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Cloud computing and distributed systems.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
Teaching material agriculture food technology
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Approach and Philosophy of On baking technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
The AUB Centre for AI in Media Proposal.docx
Cloud computing and distributed systems.
The Rise and Fall of 3GPP – Time for a Sabbatical?
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectroscopy.pptx food analysis technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Teaching material agriculture food technology
Digital-Transformation-Roadmap-for-Companies.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MIND Revenue Release Quarter 2 2025 Press Release
“AI and Expert System Decision Support & Business Intelligence Systems”
Understanding_Digital_Forensics_Presentation.pptx
cuic standard and advanced reporting.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Dropbox Q2 2025 Financial Results & Investor Presentation

Building UWP apps with React-Native