SetTimeout failure in React-Native

the code in setTimeout in the react-native project executes immediately, but the cause is not found, and the problem is not found in the react project.
if setInterval is used, it will also be executed immediately, and then triggered at a normal time.
I"ve tried to put setTimeout code in other js files, and I"ve also tried to put it in lifecycle functions and event triggers, which don"t have a delayed effect. I feel that there is something wrong with the configuration of the whole project. no, no, no.

I haven"t seen a similar problem after looking for it on the Internet for a long time.

casually write a delay:

clipboard.png

package.json:

clipboard.png

index.js:

clipboard.png

:

clipboard.png


try turning off chrome debugger
reference-sharp9436


I tried, but this didn't happen.

Menu