Last active
October 9, 2015 16:28
-
-
Save jsierles/6ea15850dab3c65dceeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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