URN
React Native + Hooks Course
Section 1: Getting Started
1. How to Get Help
2. Course Overview
3. Boilerplate Download
4. Detailed Installation Instructions for macOS
5. Detailed Installation Instructions for Windows
6. App Setup
Tried ngrok
./ngrok http https://localhost:19002 -host-header="localhost:19002"
7. Making Changes
8. Using iOS and Android Simulators
9. Official Course Repo
Section 2: Working with Content
10. Overview of React Components
- GOAL OF A REACT COMPONENT: Show some amount of content to the user
- FOUR PARTS TO A REACT COMPONENT:
- imports (libraries etc)
- a function that returns some jsx
- some styling
- an export
- make ComponentsScreen.js inside src/screens
- import { Text, StyleSheet } from ‘react-native’
- create
const ComponentsScreen = () => { <Text></Text>}
- create styling
const styles = StyleSheet.create({})
11. Showing a Custom Component
- Import component `
12. Common Questions and Answers
What’s a PRIMITIVE React Element?
- Text
- View
- Image
- Button
13. Rules of JSX
- props is short for properties and this is how we customize the JSX objects
- variables are inside {} in JSX
- We can assign a JSX element to a variable and use that within another JSX element
NOTE: we cannot show a JavaScript object INSIDE a JSX element