Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async reload() {
- const {
- resetState,
- getPhotos,
- uploadPendingPhotos,
- } = this.props
- await resetState()
- await getPhotos()
- await uploadPendingPhotos()
- }
- "react-native": "0.59.8"
- reload() {
- const {
- resetState,
- getPhotos,
- uploadPendingPhotos,
- } = this.props
- resetState().then(() => {
- getPhotos().then(() => {
- uploadPendingPhotos()
- })
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement