Skip to content

Commit 251cbb3

Browse files
ayc1facebook-github-bot
authored andcommitted
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
1 parent 8b5e3fc commit 251cbb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactAndroid/src/main/java/com/facebook/react/modules/fresco/FrescoModule.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
* <p>Does not expose any methods to JavaScript code. For initialization and cleanup only.
3939
*/
40-
@ReactModule(name = "FrescoModule")
40+
@ReactModule(name = "FrescoModule", needsEagerInit = true)
4141
public class FrescoModule extends ReactContextBaseJavaModule implements
4242
ModuleDataCleaner.Cleanable, LifecycleEventListener {
4343

0 commit comments

Comments
 (0)