Skip to content

Commit 9511859

Browse files
committed
fix: return restartApp promise
1 parent 024ccf0 commit 9511859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/restartApp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ import { NativeRNAppZungCodePushModule } from './internals/NativeRNAppZungCodePu
77
*
88
* @param onlyIfUpdateIsPending Indicates whether you want the restart to no-op if there isn't currently a pending update.
99
*/
10-
export async function restartApp(onlyIfUpdateIsPending = false) {
11-
NativeRNAppZungCodePushModule.restartApp(onlyIfUpdateIsPending);
10+
export function restartApp(onlyIfUpdateIsPending = false) {
11+
return NativeRNAppZungCodePushModule.restartApp(onlyIfUpdateIsPending);
1212
}

0 commit comments

Comments
 (0)