Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mobile development with React Native

Mobile development with React Native

Slide about React Native at RSJS 2017 talk. The main goal of this presentation was to show the difference between React Native and hybrid applications, as well, how it works under the hood.

Rodrigo Boniatti

April 08, 2017
Tweet

More Decks by Rodrigo Boniatti

Other Decks in Programming

Transcript

  1. Rodrigo boniatti Developer at Codeminer 42 Student at Universidade Feevale

    Github: boniattirodrigo Twitter: @boniattirodrigo Website: rodrigoboniatti.com
  2. import React, { Component } from 'react'; import { AppRegistry,

    Text, View } from 'react-native'; class MyComponent extends Component { render() { return ( <View> <Text>Hello World</Text> </View> ); } } AppRegistry.registerComponent( 'AwesomeProject', () => MyComponent);
  3. import { Text, ScrollView, } from 'react-native'; class Carousel extends

    Component { render() { return ( <ScrollView> <Text>Lorem ipsum...</Text> <Text>Lorem ipsum...</Text> <Text>Lorem ipsum...</Text> <Text>Lorem ipsum...</Text> </ScrollView> ); } }
  4. class MyTextComponent extends Component { render() { return ( <Text

    style={styles.text}>Lorem ipsum ...</Text> ) } } const styles = StyleSheet.create({ text: { padding: 20, fontSize: 16, backgroundColor: 'red', }, });