How to React Native?

Mitch Masia

The good, the bad, and other stuff too.

Hexient Labs

Who?

In Good Company

Vs. Ionic/Cordova

Native components vs. WebView

Native-Specific APIs

DOM!!

React as a Paradigm

{} => </>

Let's Forget about the UI

React NATIVE

React as a Paradigm

import React, { Component } from 'react'
import PropTypes from 'prop-types'

class Title extends Component {
  componentDidMount() { ... }

  render() {
    return (
      <h1>Welcome to {this.props.title}</h1>
    )
  }
}

Title.propTypes = {
  content: PropTypes.string.isRequired
}

export default Title

React as a Paradigm

import React, { Component } from 'react'
import { Text } from 'react-native'
import PropTypes from 'prop-types'

class Title extends Component {
  componentDidMount() { ... }

  render() {
    return (
      <Text>Welcome to {this.props.title}</Text>
    )
  }
}

Title.propTypes = {
  content: PropTypes.string.isRequired
}

export default Title

Key Differences w/ web

Web vs. Native APIs

Dom (styling!)

Platform-specific Builds

Community

Awesome things

Code-sharing?

Single Developer

Bug/Feature parity

OTA Updates

Fast Build Cycles

Less Awesome Things

Configuration Wormhole

Batteries not included

Android :/

Dig Rails?

Happy Life

How to Get started

Other react-y things

Thanks + Questions?

How to React Native?

By Mitch Masia

How to React Native?

The good, the bad, and some other stuff too.

  • 791