Skip to content

Commit 3346559

Browse files
Minseok ChoiMinseok Choi
authored andcommitted
support rn 0.80
1 parent f149a12 commit 3346559

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import com.facebook.react.bridge.WritableMap;
2525
import com.facebook.react.common.annotations.UnstableReactNativeAPI;
2626
import com.facebook.react.devsupport.interfaces.DevSupportManager;
27-
import com.facebook.react.modules.core.ChoreographerCompat;
27+
import android.view.Choreographer;
2828
import com.facebook.react.modules.core.DeviceEventManagerModule;
2929
import com.facebook.react.modules.core.ReactChoreographer;
3030
import com.facebook.react.modules.debug.interfaces.DeveloperSettings;
@@ -440,7 +440,7 @@ public void call(DownloadProgress downloadProgress) {
440440
getReactApplicationContext().runOnUiQueueThread(new Runnable() {
441441
@Override
442442
public void run() {
443-
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
443+
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new Choreographer.FrameCallback() {
444444
@Override
445445
public void doFrame(long frameTimeNanos) {
446446
if (!latestDownloadProgress.isCompleted()) {

test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class RNProjectManager extends ProjectManager {
309309
}
310310
mkdirp.sync(projectDirectory);
311311

312-
return TestUtil.getProcessOutput("npx @react-native-community/cli init " + appName + " --version 0.78.0 --install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 })
312+
return TestUtil.getProcessOutput("npx @react-native-community/cli init " + appName + " --version 0.80.1 --install-pods", { cwd: projectDirectory, timeout: 30 * 60 * 1000 })
313313
.then((e) => { console.log(`"npx @react-native-community/cli init ${appName}" success. cwd=${projectDirectory}`); return e; })
314314
.then(this.copyTemplate.bind(this, templatePath, projectDirectory))
315315
.then<void>(TestUtil.getProcessOutput.bind(undefined, TestConfig.thisPluginInstallString, { cwd: path.join(projectDirectory, TestConfig.TestAppName) }))

0 commit comments

Comments
 (0)