I hereby claim:
-
I am bagusaff on github.
-
I am putripwo (https://keybase.io/putripwo) on keybase.
-
I have a public key ASBSZh6iFLcG1zAYVnpmcwNIkc23csekqWdzwD8vjO9p1Qo
import React, {useState} from 'react' | |
import { View, Text, StyleSheet } from 'react-native' | |
import { Container , Content, Header, Form, Input, Item, Button, Label} from 'native-base'; | |
import * as firebase from 'firebase' | |
export default function RegisterScreen({navigation}) { | |
const [email, setEmail] = useState('') | |
const [password, setPassword] = useState('') | |
registerUser = async (email,password) => { | |
console.log() |
import React, {useState} from 'react' | |
import { Text,StyleSheet } from 'react-native' | |
import { Container , Form, Input, Item, Button, Label} from 'native-base'; | |
import * as firebase from 'firebase' | |
export default function LoginScreen({navigation}) { | |
const [email, setEmail] = useState('') | |
const [password, setPassword] = useState('') | |
loginUser = async (email,password) => { |
import React, {useEffect} from 'react' | |
import { View, StyleSheet, ActivityIndicator } from 'react-native' | |
import * as firebase from 'firebase' | |
export default function LoadingScreen({navigation}) { | |
useEffect(()=>{ | |
firebase.auth().onAuthStateChanged(user=>{ | |
if (user){ | |
navigation.navigate('App') | |
} else { |
API_KEY=HSADjlh9823YAW02hDA08jdWA | |
AUTH_DOMAIN=expo-email-auth.firebaseapp.com | |
PROJECT_ID=expo-email-auth | |
STORAGE_BUCKET=expo-email-auth.appspot.com | |
MESSAGE_SENDER_ID=7236129587213 | |
APP_ID=1:427162352153:web:2347128421092 | |
MEASUREMENT_ID=G-RYZDB9292 |
module.exports = function(api) { | |
api.cache(true); | |
return { | |
presets: ['babel-preset-expo'], | |
"plugins": [ | |
["module:react-native-dotenv", { | |
"moduleName": "@env", | |
"path": ".env", | |
"blacklist": null, | |
"whitelist": null, |
import {createAppContainer, createSwitchNavigator} from 'react-navigation' | |
import * as firebase from 'firebase' | |
import AuthNavigator from './navigation/AuthNavigator' | |
import HomeScreen from './screens/HomeScreen' | |
//import file konfigurasi tadi | |
import { | |
API_KEY, | |
AUTH_DOMAIN, | |
PROJECT_ID, |
I hereby claim:
I am bagusaff on github.
I am putripwo (https://keybase.io/putripwo) on keybase.
I have a public key ASBSZh6iFLcG1zAYVnpmcwNIkc23csekqWdzwD8vjO9p1Qo