Skip to content

Instantly share code, notes, and snippets.

@jsierles
Last active October 9, 2015 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsierles/6ea15850dab3c65dceeb to your computer and use it in GitHub Desktop.
Save jsierles/6ea15850dab3c65dceeb to your computer and use it in GitHub Desktop.
'use strict';
import React, {
StyleSheet,
TouchableOpacity,
PixelRatio,
View
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
class TopNavigation {
render() {
return (
<TouchableOpacity onPress={this.props.onPress} style={styles.wrapper}>
<View style={styles.thinBurger}>
<View style={styles.bar} />
<View style={styles.bar} />
<View style={styles.bar} />
</View>
</TouchableOpacity>
)
}
}
var styles = StyleSheet.create({
wrapper: {
position: 'absolute',
top: 0,
left: 0
},
thinBurger: {
position: 'absolute',
justifyContent: 'space-around',
padding: 15,
height: 50,
},
bar: {
width: 20,
opacity: .5,
borderTopWidth: 3 / PixelRatio.get()
}
});
export default TopNavigation;
'use strict';
import React, {
StyleSheet,
TouchableOpacity,
PixelRatio,
View
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
class TopNavigation {
render() {
return (
<TouchableOpacity onPress={this.props.onPress} style={styles.wrapper}>
<View style={styles.thinBurger}>
<View style={styles.bar} />
<View style={styles.bar} />
<View style={styles.bar} />
</View>
</TouchableOpacity>
)
}
}
var styles = StyleSheet.create({
wrapper: {
position: 'absolute',
top: 0,
left: 0
},
thinBurger: {
justifyContent: 'space-around',
padding: 15,
height: 50,
},
bar: {
width: 20,
opacity: .5,
borderTopWidth: 3 / PixelRatio.get()
}
});
export default TopNavigation;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment