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