Last active
February 26, 2020 10:22
-
-
Save IjzerenHein/0901c54c1840bbea6e6cfdff2ec59ac0 to your computer and use it in GitHub Desktop.
Expo Firebase Example Config
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
{ | |
"expo": { | |
"ios": { | |
"bundleIdentifier": "com.myawesomeapp", | |
"googleServicesFile": "./GoogleService-Info.plist" | |
}, | |
"android": { | |
"package": "com.myawesomeapp", | |
"googleServicesFile": "./google-services.json" | |
}, | |
"web": { | |
"config": { | |
"firebase": { | |
"apiKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | |
"authDomain": "myaswesomeapp.firebaseapp.com", | |
"databaseURL": "https://myaswesomeapp.firebaseio.com", | |
"projectId": "myaswesomeapp", | |
"storageBucket": "myaswesomeapp.appspot.com", | |
"messagingSenderId": "99999999999999", | |
"appId": "1:XXXXXXXXXXXXX:web:XXXXXXXXXXXXXXX", | |
"measurementId": "G-XXXXXXXXXXXX" | |
} | |
} | |
} | |
} | |
} |
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 * as Analytics from 'expo-firebase-analytics'; | |
Analytics.logEvent('share', { | |
contentType: 'text', | |
itemId: 'Expo rocks!', | |
method: 'facebook' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment