SHARE
TWEET

Untitled

a guest Jun 17th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top