Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 300a835

Browse files
nihgwusergey-akhalkov
authored andcommitted
[android] RN0.43 capacity (#735)
Fixed android project build issues that have place due to the following breaking changes: facebook/react-native#12329 facebook/react-native#12396
1 parent 360033e commit 300a835

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

android/app/src/main/java/com/microsoft/codepush/react/CodePushNativeModule.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
import com.facebook.react.bridge.ReadableMap;
2020
import com.facebook.react.bridge.WritableMap;
2121
import com.facebook.react.modules.core.DeviceEventManagerModule;
22-
import com.facebook.react.uimanager.ReactChoreographer;
22+
import com.facebook.react.modules.core.ChoreographerCompat;
23+
import com.facebook.react.modules.core.ReactChoreographer;
2324

2425
import org.json.JSONArray;
2526
import org.json.JSONException;
@@ -254,7 +255,7 @@ public void call(DownloadProgress downloadProgress) {
254255
getReactApplicationContext().runOnUiQueueThread(new Runnable() {
255256
@Override
256257
public void run() {
257-
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new Choreographer.FrameCallback() {
258+
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
258259
@Override
259260
public void doFrame(long frameTimeNanos) {
260261
if (!latestDownloadProgress.isCompleted()) {

0 commit comments

Comments
 (0)