Skip to content

Instantly share code, notes, and snippets.

View Mbbahar's full-sized avatar
👩‍💻

Münevver BAHAR Mbbahar

👩‍💻
View GitHub Profile
import React, { useState } from "react";
import {
Text,
View,
StyleSheet,
Modal,
TouchableHighlight,
Image,
Platform,
TouchableOpacity,
...
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')
...
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")
{
"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 ."