mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-11-01 05:43:11 +08:00
Fix example setState
This commit is contained in:
@@ -59,7 +59,7 @@ export default class App extends Component {
|
|||||||
try {
|
try {
|
||||||
const hash = await downloadUpdate(info, {
|
const hash = await downloadUpdate(info, {
|
||||||
onDownloadProgress: ({received, total}) => {
|
onDownloadProgress: ({received, total}) => {
|
||||||
setState({
|
this.setState({
|
||||||
received,
|
received,
|
||||||
total,
|
total,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user