A simulation app for Tinder
Front-end: React Native
Backend: Amazon Cognito, Google Firebase
Packages/System: Redux, React Native Gifted Chat, ImagePicker
cd tinder
react-native run-android
(Click to see demonstration on Youtube!)
(Click to see demonstration on Youtube!)
import Amplify from 'aws-amplify';
Amplify.configure(aws_exports);
import { Auth } from 'aws-amplify';
Auth.signUp({
username: email,
password,
attributes: { email },
})
** Amazon will send a email-verification email attached with a verification code for the user to input on the app
import { Auth } from 'aws-amplify';
Auth.signIn(email,password)
.then( user=>
store.dispatch(updateAuth({loggedin: true, name:name })))
// On failure, display error in console
.catch(err => Alert.alert("Wrong Username/Password"));
}
import { Auth } from 'aws-amplify';
Auth.forgotPasswordSubmit(email, confirmationForgotCode, ForgotGeneratedPassword)
.then(xxxx)
import firebase from '../firebase.js';
firebase.database().ref('users/' + name).set({xxxx});
import firebase from '../firebase.js';
firebase.storage().ref("Usersimage/"+this.state.username).put(xxxx);
- Get more description for Swipe
- Calculate distance for users
- Use id for Key instead of email
Special thanks to : Timothy Lo
Guide for swipetool.js: https://www.instamobile.io/react-native-controls/react-native-swipe-cards-tinder/