Why you should try React Native
for your next mobile project.
Gwen Faraday
- Developer at Project Lead the Way
- github.com/gwenf
- @gwen_faraday
- gwenfaraday@gmail.com
What is React Native?
Why not use native?
- Cost
- Time
- Fewer Developers
- Maintenance
Other Solutions - Hybrid
- Faster Development
- Re-use web skills/developers
- Doesn't feel native!
Why use React Native?
- Easier
- Faster
- Cheaper
- More maintainable
- Looks and Feels great - don't notice jank
- Strong Community
- Stable in production
Why Companies like React Native
- Fast Developer Iteration
- Cross Platform Code Sharing/Re-use
- Native Views
- Performance
React - JSX
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
class App extends Component {
render() {
return (
<div>
<h1>
Hello App!
</h1>
</div>
);
}
}
ReactDOM.render(<App /> , document.getElementById('root'));
React Native - JSX
import React, { Component } from 'react';
import { AppRegistry, View, Text } from 'react-native';
class App extends Component {
render() {
return (
<View>
<Text>
Hello App!
</Text>
</View>
);
}
}
AppRegistry.registerComponent('AwesomeProject', () => App);
Embedded Native Code
#import
@interface CalendarManager : NSObject
@end
@implementation CalendarManager
RCT_EXPORT_MODULE();
@end
//javascript
import { NativeModules } from 'react-native';
var CalendarManager = NativeModules.CalendarManager;
CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey');
iOS and Android

Datetime Picker

Getting Started #1
- Install Node and Python
- Install React Native CLI
- Xcode and Android Studio
- Set up emulators and Marshmallow
- Configure environmental variables
Getting Started #2
$ npm i -g create-react-native-app
$ create-react-native-app my-app
$ cd my-app
$ npm start
Project Setup
$ react-native init app-name
$ react-native run-ios
$ react-native run-android
React Native

Other Exciting Advancements
- Apple TV Apps
- Web Apps
- VR
- Desktop Apps
- Mac
- Windows
- Linux
Should I trust Facebook running the React Native project?

Resource Links
- Cross Platform UI Toolkit
- Browser-based development - Expo Sketch
- Flexbox Games - Froggies and Tower Defense
- Minecraft in RN!
Up-to-date Information
Thanks for Coming!
react native - des moines
By gwenf
react native - des moines
- 661