Building Native Apps with JavaScript
Tim Wang
@timwangdev
properties, state
React Component
In React, UI is a function of state and props.
View
Development Speed
Code Sharing
Product Experience
Native Integration
class HelloWorld extends Component {
render() {
return (
<Text>Hello TNC!</Text>
);
}
}
<Text style={{color: '#FFFF00'}})>
This text should be displayed in yello.
</Text>
/* Welcome to the web in 1999 */
... <View> <Text style={styles.red}>just red</Text> <Text style={styles.bigblue}>just bigblue</Text> </View> ... ​const styles = StyleSheet.create({ bigblue: { color: 'blue', fontWeight: 'bold', fontSize: 30, }, red: { color: 'red', }, });
Upgrade Path (2-week release train)
Platform Specific Code
Animation Performance
Navigator complexity
Demo