Materials for my Introduction to React Native Workshop 👨🏻💻
If you just want to run apps through Expo on your physical device, these will be enough:
brew install watchman
)npm install -g create-react-native-app
)If you also want to run apps through Expo in an emulator, you'll need to set it up
The Demo App included in the repository is meant to be used as a reference in a 2h workshop to illustrate basic React Native & Firebase concepts.
[email protected] // password
...
[email protected] // password
{
"tweets": {
"-KzIr3nG4akj5U5NvCob": {
"text": "Tweet!",
"uid": "lD29Ihlo59TKjZZVmU7pfODAcvG2"
}
},
"users": {
"lD29Ihlo59TKjZZVmU7pfODAcvG2": {
"avatar": "https://randomuser.me/api/portraits/men/81.jpg",
"name": "Ricky Neal",
"username": "rickyneal"
}
}
}
{
"rules": {
".read": "auth != null",
".write": "auth != null",
"tweets": {
"$tweet": {
// new messages must have a string text and a string uid
".validate": "newData.hasChildren(['text', 'uid']) && newData.child('text').isString() && newData.child('uid').isString()",
// the uid must match the authenticated user
"uid": {
".validate": "newData.val() === auth.uid"
},
}
}
}
}
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License