Jan Monschke / @thedeftone / github.com/janmonschke
Frontend Engineer at SoundCloud
develop web-ish, run natively
import React from 'react';
class Slide extends React.Component {
render() {
const { title, body } = this.props;
return (
<div>
<h2>{title}</h2>
<p>{body}</p>
</div>
);
}
}
import React, { View, Text } from 'react-native';
class Slide extends React.Component {
render() {
const { title, body } = this.props;
return (
<View>
<Text>{title}</Text>
<Text>{body}</Text>
</View>
);
}
}
.slide {
display: flex;
align-items: 'center';
justify-content: 'center';
}
<div className="slide">(...)</div>
import React, { View, StyleSheet } from 'react-native';
const styles = StyleSheet.create({
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
});
<View style={styles.slide}>(...)</View>
View, Image, Navigator, List, Loading Indicator...
import SlidesMenu from './slides-menu';
Packager => Platform => slides-menu.ios.js,
slides-menu.android.js
(bug fixes, styling fixes...)