Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. async reload() {
  2. const {
  3. resetState,
  4. getPhotos,
  5. uploadPendingPhotos,
  6. } = this.props
  7. await resetState()
  8. await getPhotos()
  9. await uploadPendingPhotos()
  10. }
  11.  
  12. "react-native": "0.59.8"
  13.  
  14. reload() {
  15. const {
  16. resetState,
  17. getPhotos,
  18. uploadPendingPhotos,
  19. } = this.props
  20. resetState().then(() => {
  21. getPhotos().then(() => {
  22. uploadPendingPhotos()
  23. })
  24. })
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement