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 Thumbnail from './Thumbnail' | |
import { withTheme } from 'styled-components' | |
import styled from 'styled-components/native' | |
import Animated from 'react-native-reanimated' | |
import ImageLoaderInterface from './ImageLoaderInterface' | |
import { coverParent, roundImageEdges } from '@utils/styleBuilder' | |
const imageOpacity = new Animated.Value(0) |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/kauedm/.oh-my-zsh" | |
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/platform-tools |
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 Text from '@Text' | |
import React from 'react' | |
import Icon from '@Icons' | |
import { getColor } from '@Colors' | |
import SearchBar from './SearchBar' | |
import styled from 'styled-components' | |
import { TouchableWithoutFeedback, StatusBar } from 'react-native' | |
const Header = ({ ...props }) => ( | |
<HeaderContainer> |
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
//ComponentDidMount | |
this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this._keyboardDidShow) | |
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this._keyboardDidHide) | |
//Keyboard handlers | |
_keyboardDidShow = () => { | |
return this.setState({ logoOpacity: 0, addPaddingBottom: true }) | |
} | |
_keyboardDidHide = () => { |
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
render() { | |
const { fabrics, loading, alert } = this.state | |
return ( | |
<div className='main-content'> | |
{alert} | |
{this.fabricModal()} | |
<Card content={ | |
<Grid fluid> | |
<Row> | |
<Col md={12}> |
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 Compress from 'compress.js'; | |
export const compress = image => ( | |
new Promise((resolve, reject) => { | |
const cmp = new Compress() | |
const byteString = atob(image.split(',')[1]); | |
const mimeType = image.split(',')[0].split(':')[1].split(';')[0]; | |
let ab = new ArrayBuffer(byteString.length); | |
let ia = new Uint8Array(ab); | |
for (let i = 0; i < byteString.length; i++) { ia[i] = byteString.charCodeAt(i) }; |
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
return Promise.all(PromiseStack) | |
.then(() => { | |
console.log('Data sent to Firestore') | |
let taskList = {} | |
// isEmpty(taskList) ? Promise.resolve('vazio') : Promise.reject('cheio') | |
db.collection('tasks') | |
.where('user', '==', userUID) |
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 { connect } from 'react-redux'; | |
import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom'; | |
import { Login, Dashboard, Wrapper, Products, RoutineBuilder, RoutineOverview } from '../views'; | |
class Router extends React.Component { | |
render() { | |
return <BrowserRouter>{this._handleAuthentication()}</BrowserRouter> |
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
01-03 10:30:50.791 29460-29460/? D/dalvikvm: Late-enabling CheckJNI | |
01-03 10:30:50.851 29460-29460/? E/Zygote: Zygote: error closing descriptor | |
libcore.io.ErrnoException: close failed: EBADF (Bad file number) | |
at libcore.io.Posix.close(Native Method) | |
at libcore.io.BlockGuardOs.close(BlockGuardOs.java:75) | |
at com.android.internal.os.ZygoteInit.closeServerSocket(ZygoteInit.java:198) | |
at com.android.internal.os.ZygoteConnection.handleChildProc(ZygoteConnection.java:879) | |
at com.android.internal.os.ZygoteConnection.runOnce(ZygoteConnection.java:242) | |
at com.android.internal.os.ZygoteInit.runSelectLoop(ZygoteInit.java:663) | |
at com.android.internal.os.Zyg |