Skip to content

Instantly share code, notes, and snippets.

@cezar08
Last active June 1, 2019 00:12
Show Gist options
  • Select an option

  • Save cezar08/44301fe30ba0b129cbe43ac50c0ea131 to your computer and use it in GitHub Desktop.

Select an option

Save cezar08/44301fe30ba0b129cbe43ac50c0ea131 to your computer and use it in GitHub Desktop.
Mine.js
import React from 'react'
import {View, StyleSheet } from 'react-native'
export default props => {
return (
<View style={styles.container}>
<View style={styles.coreMine} />
<View style={styles.line} />
<View style={[styles.line, { transform: [{rotate: '45deg'}]}]} />
<View style={[styles.line, { transform: [{rotate: '90deg'}]}]} />
<View style={[styles.line, { transform: [{rotate: '135deg'}]}]} />
</View>
)
}
const styles = StyleSheet.create({
container: {
alignItems: 'center',
justifyContent: 'center'
},
coreMine: {
height: 14,
width: 14,
borderRadius: 10,
backgroundColor: 'black',
alignItems: 'center',
justifyContent: 'center'
},
line: {
position: 'absolute',
height: 3,
width: 20,
borderRadius: 3,
backgroundColor: '#000'
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment