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, { useState } from "react"; | |
import { | |
Text, | |
View, | |
StyleSheet, | |
Modal, | |
TouchableHighlight, | |
Image, | |
Platform, | |
TouchableOpacity, |
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 auth from '@react-native-firebase/auth'; | |
... | |
const __signIn = async () => { | |
try { | |
let response = await auth().signInWithEmailAndPassword(UserEmail, UserPassword) | |
if (response) { | |
console.log(response) | |
Alert.alert('Successful Login','Welcome the React Native') |
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 auth from "@react-native-firebase/auth" | |
... | |
const __doSignUp = () => { | |
if (!UserEmail) { | |
Alert.alert('Error',"Email required *") | |
return | |
} else if (!UserPassword && UserPassword.trim() && UserPassword.length > 6) { | |
Alert.alert('Error',"Weak password, minimum 6 chars") |
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
{ | |
"name": "ReactNativeFolderStructure", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"android": "react-native run-android", | |
"ios": "react-native run-ios", | |
"start": "react-native start", | |
"test": "jest", | |
"lint": "eslint ." |