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

前端 未结 14 1273
面向向阳花
面向向阳花 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

    import { YellowBox } from 'react-native';
    
    construct() {
        YellowBox.ignoreWarnings(['Setting a timer']);
    }
    

    This ignores the warning for me. You should add this to the constructor of every page that shows the warning.

    Ignoring it is not the best approach, but if you're using Firebase Realtime Database. They are looking into solving this issue with their library, even though the issue is 2 years old.

提交回复
热议问题