dailylog 07-28-21

less than 1 minute read

211. Handling Errored Requests

Displaying an error request

  1. Add case to our context
  2. pass the payload to our context from AuthContext
  3. display error in SignupScreen
  4. 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

  1. FROM STACKOVERFLOW HERE
  2. which expo-cli
  3. get that path
  4. rm
  5. npm install -g expo-cli

STARTING NEW REACT-NATIVE EXPO APP

USING NPM

  1. expo init expo-signin --npm
  2. cd expo-signin
  3. npm install react-native
  4. npm install @react-navigation/native
  5. 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

Tags:

Updated: