mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d3b2ac3a84
Summary: I hit a crash when testing bridgeless mode in a release build: Error: Exception in HostFunction: java.lang.NoSuchMethodError: no non-static method "Lcom/facebook/react/modules/core/JavaTimerManager;.createTimer(IJZ)V" It turns out that `JavaTimerManager.createTimer()` is getting stripped from release builds because it's not referenced in Java at all. Adding `DoNotStrip` annotation to keep it around. The other methods in JavaTimerManager don't need this because they're referenced by TimingModule - this is the only method that's only used directly from C++ by bridgeless mode. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D19655519 fbshipit-source-id: 8b9862475986bb84b12d81f73f677cc2e4860c67