Skip to content

Instantly share code, notes, and snippets.

@IjzerenHein
Last active February 26, 2020 10:22
Show Gist options
  • Save IjzerenHein/0901c54c1840bbea6e6cfdff2ec59ac0 to your computer and use it in GitHub Desktop.
Save IjzerenHein/0901c54c1840bbea6e6cfdff2ec59ac0 to your computer and use it in GitHub Desktop.
Expo Firebase Example Config
{
"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"
}
}
}
}
}
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