React Native Fetch does not render response until after clicking screen

前端 未结 2 1870
青春惊慌失措
青春惊慌失措 2020-12-19 17:57

So I\'ve been building an app that uses the Fetch API to make a request. Unfortunately, I think the code shown in the Facebook docs are (may be?) incorrect.

相关标签:
2条回答
  • 2020-12-19 18:30

    I saw a problem like yours. It's not about your code. Are using the app in the Remote JS debugging mode? If so, disable it. If it didn't work, try to install a release version.

    0 讨论(0)
  • 2020-12-19 18:30

    (Posted on behalf of the OP).

    Apparently it was due to running the app in debug mode. Running the app with this.setState works just fine when not in debug mode.

    0 讨论(0)
提交回复
热议问题