Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

ДимкаРеактнативный gHashTag

🌴
On vacation
Block or report user

Report or block gHashTag

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View AppNavigator.js
import { createAppContainer } from 'react-navigation'
import { createStackNavigator } from 'react-navigation-stack'
import { ConfirmSignUp, Hello, User, SignIn, SignUp, Forgot, ForgotPassSubmit } from './screens/Authenticator'
const AppNavigator = createStackNavigator(
{
HELLO: { screen: Hello },
SIGN_IN: { screen: SignIn },
SIGN_UP: { screen: SignUp },
FORGOT: { screen: Forgot },
View ForgotPassSubmit.js
import React, { useState, useRef } from 'react'
import { Auth } from 'aws-amplify'
import t from 'tcomb-form-native'
import { AppContainer, Button, Space } from '../../../components'
import { structForgotPass, options } from '../Form'
import { onScreen, goBack } from '../../../constants'
// Fixme
const Form = t.form.Form // eslint-disable-line
View Forgot.js
import React, { useState, useRef } from 'react'
import { Auth } from 'aws-amplify'
import t from 'tcomb-form-native'
import { AppContainer, Button, Space } from '../../../components'
import { structForgot, options } from '../Form'
import { onScreen, goBack } from '../../../constants'
// Fixme
const Form = t.form.Form // eslint-disable-line
View SignIn.js
import React, { useState, useRef } from 'react'
import { Auth } from 'aws-amplify'
import * as Keychain from 'react-native-keychain'
import t from 'tcomb-form-native'
import { AppContainer, Button, Space, TextLink, TextError } from '../../../components'
import { structSignIn, options } from '../Form'
import { onScreen, goBack } from '../../../constants'
const Form = t.form.Form // eslint-disable-line
View ConfirmSignUp.js
import React, { useState, useRef } from 'react'
import { Auth } from 'aws-amplify'
import t from 'tcomb-form-native'
import { AppContainer, Button, Space, TextLink, TextError } from '../../../components'
import { structConfirmSignUp, options } from '../Form'
import { onScreen, goBack } from '../../../constants'
const Form = t.form.Form // eslint-disable-line
const ConfirmSignUp = ({ navigation }) => {
View Form.js
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,
View SignUp.js
import React, { useState, useRef } from 'react'
import { Auth } from 'aws-amplify'
import * as Keychain from 'react-native-keychain'
import t from 'tcomb-form-native'
import { AppContainer, Space, Button, TextError } from '../../../components'
import { structSignUp, options } from '../Form'
import { onScreen, goBack } from '../../../constants'
const Form = t.form.Form // eslint-disable-line
View TextError.js
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: {
View Input.js
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'
}
View TextLink.js
You can’t perform that action at this time.