Skip to content

Instantly share code, notes, and snippets.

View gHashTag's full-sized avatar
:electron:
t27

Vasilev Dmitrii gHashTag

:electron:
t27
View GitHub Profile
import React, { useState } from 'react'
import { Auth } from 'aws-amplify'
import { Formik } from 'formik'
import * as Yup from 'yup'
import { AppContainer, Button, Space, ButtonLink, TextError, Input } from 'react-native-unicorn-uikit'
import { onScreen, goBack } from '../../../constants'
const ConfirmSignUp = ({ route, navigation }) => {
const [loading, setLoading] = useState(false)
const [error, setError] = useState('')
@gHashTag
gHashTag / Form.js
Last active November 26, 2019 12:28
import { Platform } from 'react-native'
import t from 'tcomb-form-native'
import FloatingLabel from 'react-native-floating-label'
import {
LABEL_COLOR,
INPUT_COLOR,
ERROR_COLOR,
HELP_COLOR,
BORDER_COLOR,
DISABLED_COLOR,
import React, { useState } from 'react'
import { Auth } from 'aws-amplify'
import * as Keychain from 'react-native-keychain'
import { Formik } from 'formik'
import * as Yup from 'yup'
import { AppContainer, Space, Button, Input, TextError } from 'react-native-unicorn-uikit'
import { onScreen, goBack } from '../../../constants'
const SignUp = ({ navigation }) => {
const [loading, setLoading] = useState(false)
import React, { memo } from 'react'
import { StyleSheet, Text, View } from 'react-native'
import { RED } from '../../constants'
const styles = StyleSheet.create({
container: {
alignItems: 'center',
margin: 10
},
h1: {
@gHashTag
gHashTag / Input.js
Last active October 17, 2019 09:47
import React, { memo } from 'react'
import { StyleSheet, TextInput, KeyboardAvoidingView } from 'react-native'
const styles = StyleSheet.create({
container: {
width: 300,
height: 50,
margin: 5,
backgroundColor: '#ddd'
}
import React, { useEffect, useState } from 'react'
import { Auth } from 'aws-amplify'
import * as Keychain from 'react-native-keychain'
import { AppContainer, Button, Space, H6 } from 'react-native-unicorn-uikit'
import { onScreen } from '../../../constants'
const Hello = ({ navigation }) => {
const [loading, setLoading] = useState(false)
useEffect(() => {
setLoading(true)
@gHashTag
gHashTag / Button.js
Last active November 26, 2019 12:11
import React, { memo, useState } from 'react'
import { StyleSheet, TouchableWithoutFeedback, Text } from 'react-native'
import { BLUE, PINK } from '../../constants'
const styles = StyleSheet.create({
img: {
alignSelf: 'center',
fontSize: 30,
fontFamily: 'IBM-Logo'
}
import React, { memo } from 'react'
import { View } from 'react-native'
const Space = memo(({ height }) => <View style={{ height: height || 30 }} />)
export { Space }
import React from 'react'
import { StyleSheet, View } from 'react-native'
import Spinner from 'react-native-spinkit'
import { PINK } from '../../constants'
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
paddingTop: 200,