3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ReactNative with Firebase の構成で Setting a timer for a long period of time, i.e. multiple minutes というエラーが出た時の対処法

Posted at

はじめに

ReactNative with Firebase の組み合わせで以下のエラーが出ることがあります。

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

このエラーは長きに渡って本家のissueで議論されていますが、Firebaseと連携しているのが主な原因であり、ReactNative側の問題ではなく、現在は暫定的な対応のみしか出来ないということらしいです。

この暫定的対応というのが問題で、様々な方がまとめてくれていますが、僕の場合はどれも効果的ではありませんでした。
なので、今後同じエラーに困った方のために、僕が成功した対処法を共有しておきます。

対処法

react-native-ignore-warnings というモジュールをインストールして、App.jsに以下のコードを書きます。

App.js
import ignoreWarnings from 'react-native-ignore-warnings';

ignoreWarnings('Setting a timer');
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?