Last active
June 1, 2019 00:12
-
-
Save cezar08/44301fe30ba0b129cbe43ac50c0ea131 to your computer and use it in GitHub Desktop.
Mine.js
This file contains hidden or 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
| 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