React Native is The Future of Mobile
John Ptacek
Skyline Technologies
@jptacek / www.jptacek.com
jptacek@skylineTechnologies.com
Agenda
React Native Is The Future of Mobile
What is React
What is React Native
What is React Native
What is React Native
What is React Native
Why React Native
Why React Native
Getting started
Expo
Demo - App the First
React Components
export default class Home extends React.Component {� render() {� return (� <View> � <Text>Home</Text> � </View>� );� }�}��
Demo - Components
React Components
export default class Home extends React.Component {� render() {� return (� <View> � <Text>Home</Text> � </View>� );� }�}��
Demo - More Components
React Props
App.js
<Header screenName='Home Screen'/>
Header.js
<Text>Screen - {this.props.screenName}</Text>
��
React State
export default class Home extends React.Component {
state = {location: 'Appleton', name: 'John' }
updateName() {this.setState({name: 'John Ptacek'})\}
render() { return (
<View>
<Text onPress={() => this.updateName()}> Click Me!</Text>
<Text>Hello from Home {this.state.name}</Text>
</View> ); }
��
Demo - Props and State
Styling
Styling
const styles = StyleSheet.create({
heading: { fontWeight: 'bold', fontSize: 32, },
red: { color: 'red', },
blue: { color: 'blue', }
});
Styling
const styles = StyleSheet.create({
heading: { fontWeight: 'bold', fontSize: 32, },
red: { color: 'red', },
blue: { color: 'blue', }
});
Demo - Styling
Real Demos!
Questions
Skyline Technologies
@jptacek / www.jptacek.com
jptacek@skylineTechnologies.com