dailylog 07-28-21
211. Handling Errored Requests
Displaying an error request
- Add case to our context
- pass the payload to our context from AuthContext
- display error in SignupScreen
- add errorMessage to styles
IN DETAIL: in signup catch statement add a call to dispatch function – dispatch function takes an object the object has two properties type: ‘add_error’ payload: ‘something went wrong with signup’ (or whatever our error message is)
EXPO ERRORS
- FROM STACKOVERFLOW HERE
which expo-cli
- get that path
- rm
npm install -g expo-cli
STARTING NEW REACT-NATIVE EXPO APP
USING NPM
expo init expo-signin --npm
- cd expo-signin
npm install react-native
npm install @react-navigation/native
expo install react-native-screens react-native-safe-area-context
WHAT FINALLY WORKED
expo init expo-signin –npm cd expo-signin npm install react-native npm install @react-navigation/native expo install react-native-screens react-native-safe-area-context npm install react-native-screens react-native-safe-area-context npm install –save @react-navigation/native npm install –save @react-navigation/native-stack npm start