简体   繁体   中英

I would like to know how to make automatic refresh instead of pressing a button in Expo/React Native

So I'm new to react native and Expo and i would like to know a way to automatize my screen when i receive an order to update the screen every time.

My Code: https://pastebin.com/eqJtay50

you have to send notification to you app each time on server you receive an order ( you can use react-native-firebase...). then in your app, when receive notification, you call api to reload screen ( may use redux-thunk, redux-saga....)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM