Setting a timer for a long period of time, i.e. multiple minutes

前端 未结 14 1199
面向向阳花
面向向阳花 2020-12-02 12:23

I want to use firebase auth with react native for Login and Signup but I got a yellow error:

Setting a timer for a long p

相关标签:
14条回答
  • 2020-12-02 12:52

    Facing the same issue.. Seems like, we'd have to hide the warning for the time being. Here's the shortest way to do it:

    componentDidMount() { console.disableYellowBox = true; ... }
    
    0 讨论(0)
  • 2020-12-02 12:54

    To fix this issue...

    1. Navigate to your node_modules/react-native/Libraries/Core/Timers/JSTimers.js file.

    2. Look for the variable MAX_TIMER_DURATION_MS

    3. Change its value to 10000 * 1000

    4. Save the changes (with auto format turned off) and re-build your app.

    Found this answer on https://github.com/firebase/firebase-js-sdk/issues/97#issuecomment-485410026

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