View gu-deck-encoder
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
const GOD_NAMES = { | |
nature: 1, | |
war: 2, | |
death: 3, | |
light: 4, | |
magic: 5, | |
deception: 6, | |
}; | |
function collectCards(cards) { |
View .babelrc
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
Show hidden characters
{ | |
"presets": ["babel-preset-expo"], | |
"env": { | |
"development": { | |
"plugins": [ | |
"transform-react-jsx-source", | |
[ | |
"module-resolver", | |
{ | |
"root": ["./src"] |
View circle with line
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
import styled from 'styled-components/native'; | |
const Circle = styled.View` | |
width: 50px; | |
height: 50px; | |
border-radius: 25px; | |
background-color: blue; | |
`; | |
const Line = styled.View` |
View gist:91b4f6d429f770648253c3f05cfcba82
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
window.__PRELOADED_STATE__ = {"app":{"isFetching":false,"isLoaded":true,"rate":0,"trendingTopicsLoading":false,"trendingTopics":[],"rewardFund":{},"bannerClosed":false,"appUrl":"http://localhost:3000","usedLocale":"en","cryptosPriceHistory":{},"showPostModal":false,"currentShownPost":{}},"auth":{"isAuthenticated":true,"isFetching":false,"isReloading":false,"loaded":true,"user":{"id":395827,"name":"jm90mm","owner":{"weight_threshold":1,"account_auths":[],"key_auths":[["STM82TbviXvUFjewgPuNMH5KZESuuEvCN7rUEq5YNZBMYninpdDk2",1]]},"active":{"weight_threshold":1,"account_auths":[],"key_auths":[["STM8MTKnN8RtgVSXYkXXVW7oV8UYtPDuZohDAbtXo25xfWsV16J8M",1]]},"posting":{"weight_threshold":1,"account_auths":[["busy-mobile",1],["busy.app",1],["utopian.app",1]],"key_auths":[["STM8F8CGW67Vf6kbrcZQHtsJ7obQ1UL84WycnScrLF9s1B4JiV7Xn",1]]},"memo_key":"STM8UQhYmVF9eJMDcKjKPkjEMNrJjUEGVeswGvdnNcuaxrmdF1nBM","json_metadata":"{\"profile\":{\"name\":\"JM Myers\",\"profile_image\":\"https://avatars2.githubusercontent.com/u/5067716?s |
View UserBlog
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
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import { RefreshControl, ListView } from 'react-native'; | |
import _ from 'lodash'; | |
import styled from 'styled-components/native'; | |
import { COLORS } from 'constants/styles'; | |
import PostPreview from 'components/post-preview/PostPreview'; | |
import UserHeader from 'components/user/user-header/UserHeader'; | |
const StyledListView = styled.ListView` |
View App.js
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
import React from 'react'; | |
import { StatusBar } from 'react-native'; | |
import { DrawerNavigator, DrawerItems } from 'react-navigation'; | |
import HomeStackNavigator from 'components/navigation/home-stack-navigator'; | |
import { COLORS } from 'constants/styles'; | |
import styled from 'styled-components/native'; | |
const DrawerContainer = styled.View` | |
flex: 1; | |
background-color: ${COLORS.GREY.BRIGHT_GREY}; |
View home-screen.js
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
import React, { Component } from 'react'; | |
import styled from 'styled-components/native'; | |
import Header from 'components/common/header'; | |
import { COLORS } from 'constants/styles'; | |
import { TouchableWithoutFeedback, ScrollView, TouchableOpacity } from 'react-native'; | |
import ShowData from 'data/data'; | |
import Icon from 'react-native-vector-icons/FontAwesome'; | |
const Container = styled.View` | |
display: flex; |
View show-details-screen.js
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
import React, { Component } from 'react'; | |
import { TouchableOpacity } from 'react-native'; | |
import styled from 'styled-components/native'; | |
import { COLORS } from 'constants/styles'; | |
import Icon from 'react-native-vector-icons/FontAwesome'; | |
const Container = styled.View` | |
background-color: ${COLORS.GREY.BLACK_RUSSIAN}; | |
height: 100%; | |
`; |
View header.js
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
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import styled from 'styled-components/native'; | |
import Icon from 'react-native-vector-icons/FontAwesome'; | |
import { COLORS } from 'constants/styles'; | |
import { TouchableWithoutFeedback } from 'react-native'; | |
const NETFLIX_LOGO = require('../../../assets/icons/netflix-logo.png'); | |
const Container = styled.View` | |
display: flex; |
NewerOlder