This file contains hidden or 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 { Image, Text, TextInput, TouchableOpacity, View } from 'react-native' | |
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; | |
import styles from './styles'; | |
export default function LoginScreen({navigation}) { | |
const [email, setEmail] = useState('') | |
const [password, setPassword] = useState('') | |
const onFooterLinkPress = () => { |
This file contains hidden or 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-native-gesture-handler'; | |
import React, { useEffect, useState } from 'react' | |
import { NavigationContainer } from '@react-navigation/native' | |
import { createStackNavigator } from '@react-navigation/stack' | |
import { LoginScreen, HomeScreen, RegistrationScreen } from './src/screens' | |
import {decode, encode} from 'base-64' | |
if (!global.btoa) { global.btoa = encode } | |
if (!global.atob) { global.atob = decode } | |
const Stack = createStackNavigator(); |
This file contains hidden or 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 { StyleSheet } from 'react-native'; | |
export default StyleSheet.create({ | |
container: { | |
flex: 1, | |
alignItems: 'center' | |
}, | |
title: { | |
}, |
This file contains hidden or 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 { Image, Text, TextInput, TouchableOpacity, View } from 'react-native' | |
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; | |
import styles from './styles'; | |
export default function RegistrationScreen({navigation}) { | |
const [fullName, setFullName] = useState('') | |
const [email, setEmail] = useState('') | |
const [password, setPassword] = useState('') | |
const [confirmPassword, setConfirmPassword] = useState('') |
This file contains hidden or 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 { Image, Text, TextInput, TouchableOpacity, View } from 'react-native' | |
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; | |
import styles from './styles'; | |
export default function RegistrationScreen({navigation}) { | |
const [fullName, setFullName] = useState('') | |
const [email, setEmail] = useState('') | |
const [password, setPassword] = useState('') | |
const [confirmPassword, setConfirmPassword] = useState('') |
This file contains hidden or 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 * as firebase from 'firebase'; | |
import '@firebase/auth'; | |
import '@firebase/firestore'; | |
const firebaseConfig = { | |
apiKey: 'YOUR_KEY_HERE_AIzaSyAOWH', | |
authDomain: 'your-auth-domain-b1234.firebaseapp.com', | |
databaseURL: 'https://your-database-name.firebaseio.com', | |
projectId: 'your-project-id-1234', | |
storageBucket: 'your-project-id-1234.appspot.com', |
This file contains hidden or 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 { firebase } from '../../firebase/config' | |
... | |
export default function RegistrationScreen({navigation}) { | |
... | |
const onRegisterPress = () => { |
This file contains hidden or 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 { firebase } from '../../firebase/config' | |
... | |
export default function LoginScreen({navigation}) { | |
... |
This file contains hidden or 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 { firebase } from './src/firebase/config' | |
... | |
export default function App() { | |
... |
This file contains hidden or 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 from 'react' | |
import { Text, View } from 'react-native' | |
export default function HomeScreen(props) { | |
return ( | |
<View> | |
<Text>Home Screen</Text> | |
</View> | |
) | |
} |
OlderNewer