SlideShare a Scribd company logo
React native-firebase startup-mtup
• Leverages
•
• teratail
• K Kubernetes 

• 



🎉






https://github.com/invertase/react-native-firebase/tree/v5.x.x




https://github.com/invertase/react-native-firebase/tree/v5.x.x
React native-firebase startup-mtup
https://firebase.google.com/docs/auth/?hl=ja
firebase.auth().onAuthStateChanged(_user => {
if(_user) {
// login
} else {
// logout
}
})


eventListener
import { AccessToken, LoginManager, LoginResult } from 'react-native-fbsdk'
import firebase from 'react-native-firebase'
const getFacebookCredential = async () => {
try {
const login: LoginResult = await LoginManager.logInWithReadPermissions(
[
'public_profile',
'email'
]
)
if (login.isCancelled) { return false }
const result = await AccessToken.getCurrentAccessToken();
if (!result) { throw new Error('Something went wrong obtaining the users access
token') }
return firebase.auth.FacebookAuthProvider.credential(result.accessToken)
} catch (error) {
console.log(error)
return false
}
}
WebAuth OAuth
const login = async (credential) => {
try {
const result = await
firebase.auth().signInWithCredential(credential)
return result
} catch (error) {
console.log(error)
}
}
signInWithCredential
AuthListener




const linkCredential = async (callback) => {
const credential = await getFacebookCredential()
if (credential) {
const currentUser = firebase.auth().currentUser
if (currentUser) {
const result = await
currentUser.linkWithCredential(credential)
return result
}
}
}












https://facebook.github.io/react-native/docs/linking.html
https://firebase.google.com/docs/dynamic-links/ios/receive?hl=ja
https://rnfirebase.io/docs/v5.x.x/links/ios


loginUser.sendEmailVerification({
url: `${DEEP_LINK}`,
iOS : {
bundleId: bundleIdentifier,
},
android: {
packageName: ‘appName’,
},
handleCodeInApp: true,
})


firebase.links().onLink(url => {
if(url){
const isLoginUrl = url.includes(DEEP_LINK)
const canOpen = Linking.canOpenURL(url)
if (canOpen && isLoginUrl) {
Linking.openURL(url)
}
}
})
React native-firebase startup-mtup
React native-firebase startup-mtup
React native-firebase startup-mtup
React native-firebase startup-mtup
admin.firestore().collection(`users`)

.where('status', '==', 'login').orderBy('updatedAt','desc').limit(20);
















React native-firebase startup-mtup








React native-firebase startup-mtup
React native-firebase startup-mtup
React native-firebase startup-mtup
React native-firebase startup-mtup
React native-firebase startup-mtup
React native-firebase startup-mtup




React native-firebase startup-mtup
React native-firebase startup-mtup

More Related Content

PDF
Rntb20200805
 
PDF
Angular server-side communication
PDF
Angular promises and http
PDF
Flask and Angular: An approach to build robust platforms
PPTX
Using Cerberus and PySpark to validate semi-structured datasets
PPTX
Sharding and Load Balancing in Scala - Twitter's Finagle
PDF
Redux. From twitter hype to production
PDF
Android Libs - Retrofit
Rntb20200805
 
Angular server-side communication
Angular promises and http
Flask and Angular: An approach to build robust platforms
Using Cerberus and PySpark to validate semi-structured datasets
Sharding and Load Balancing in Scala - Twitter's Finagle
Redux. From twitter hype to production
Android Libs - Retrofit

What's hot (20)

PDF
Présentation de HomeKit
PDF
Automation in angular js
PDF
Debugging JavaScript with Chrome
TXT
fabfile.py
PDF
«От экспериментов с инфраструктурой до внедрения в продакшен»​
PDF
Advanced redux
PDF
"Service Worker: Let Your Web App Feel Like a Native "
PDF
Going fullstack React(ive) - Paulo Lopes - Codemotion Amsterdam 2017
PDF
Autoscaling with hashi_corp_nomad
PDF
From * to Symfony2
PDF
API Days Paris - Automatic Testing of (RESTful) API Documentation
PPTX
Phpbase
PDF
Découvrir dtrace en ligne de commande.
PDF
Anaysing your logs with docker and elk
PDF
A real-world Relay application in production - Stefano Masini - Codemotion Am...
PDF
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
PDF
Virthualenvwrapper
PDF
Why Redux-Observable?
PDF
Scalable Angular 2 Application Architecture
PDF
Real world scala
Présentation de HomeKit
Automation in angular js
Debugging JavaScript with Chrome
fabfile.py
«От экспериментов с инфраструктурой до внедрения в продакшен»​
Advanced redux
"Service Worker: Let Your Web App Feel Like a Native "
Going fullstack React(ive) - Paulo Lopes - Codemotion Amsterdam 2017
Autoscaling with hashi_corp_nomad
From * to Symfony2
API Days Paris - Automatic Testing of (RESTful) API Documentation
Phpbase
Découvrir dtrace en ligne de commande.
Anaysing your logs with docker and elk
A real-world Relay application in production - Stefano Masini - Codemotion Am...
[JCConf 2020] 用 Kotlin 跨入 Serverless 世代
Virthualenvwrapper
Why Redux-Observable?
Scalable Angular 2 Application Architecture
Real world scala
Ad

Similar to React native-firebase startup-mtup (6)

PDF
Set up email authentication using react native + firebase auth + react naviga...
PDF
React Native Firebase Realtime Database + Authentication
PDF
React Native Firebase
PPTX
Advance Mobile Application Development class 07
PDF
Mobile Open Day: React Native: Crossplatform fast dive
PDF
Lecture 12: React-Native Firebase Authentication
Set up email authentication using react native + firebase auth + react naviga...
React Native Firebase Realtime Database + Authentication
React Native Firebase
Advance Mobile Application Development class 07
Mobile Open Day: React Native: Crossplatform fast dive
Lecture 12: React-Native Firebase Authentication
Ad

Recently uploaded (20)

PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
Geodesy 1.pptx...............................................
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
additive manufacturing of ss316l using mig welding
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
composite construction of structures.pdf
PDF
Digital Logic Computer Design lecture notes
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Structs to JSON How Go Powers REST APIs.pdf
Arduino robotics embedded978-1-4302-3184-4.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Operating System & Kernel Study Guide-1 - converted.pdf
bas. eng. economics group 4 presentation 1.pptx
Mechanical Engineering MATERIALS Selection
Geodesy 1.pptx...............................................
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Foundation to blockchain - A guide to Blockchain Tech
CYBER-CRIMES AND SECURITY A guide to understanding
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
additive manufacturing of ss316l using mig welding
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Internet of Things (IOT) - A guide to understanding
composite construction of structures.pdf
Digital Logic Computer Design lecture notes
Mitigating Risks through Effective Management for Enhancing Organizational Pe...

React native-firebase startup-mtup