Eagerly initialize FrescoModule

Summary: It's unclear if this was a recent regression or not (too lazy to find out), but instrumentation tests are failing because FrescoModule is never initialized (see task for trace). Based on the initial introduction of this class (D2448321) it appears that FrescoModule was always intended to be initialized on startup. Let's eagerly init Fresco in that case.

Reviewed By: fkgozali

Differential Revision: D9556864

fbshipit-source-id: 0b670dec46f5087b3794330931ddf5d7782c8367
This commit is contained in:
Andrew Chen (Eng) 2018-08-29 09:49:59 -07:00 committed by Facebook Github Bot
parent 8b5e3fc16b
commit 251cbb3871
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ import okhttp3.OkHttpClient;
*
* <p>Does not expose any methods to JavaScript code. For initialization and cleanup only.
*/
@ReactModule(name = "FrescoModule")
@ReactModule(name = "FrescoModule", needsEagerInit = true)
public class FrescoModule extends ReactContextBaseJavaModule implements
ModuleDataCleaner.Cleanable, LifecycleEventListener {