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:
parent
8b5e3fc16b
commit
251cbb3871
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Reference in New Issue