TP-61032 | RN Enhancement (#10364)

This commit is contained in:
Kshitij Pramod Ghongadi
2024-04-08 18:14:36 +05:30
committed by GitHub
parent a1025517c2
commit 0b09e148fd
2 changed files with 13 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ export default class App extends Component<{}> {
flavor = res?.baseUrl;
});
codePush.sync({
installMode: codePush.InstallMode.IMMEDIATE,
installMode: codePush.InstallMode.ON_NEXT_RESUME,
mandatoryInstallMode: codePush.InstallMode.IMMEDIATE,
});
};

View File

@@ -1,8 +1,16 @@
import { AlfredModuleConnector } from "../native-module/NativeModules";
export const setBottomSheetView = (id: number | null) =>
AlfredModuleConnector.setBottomSheetView(id!!);
export const setBottomSheetView = (id: number | null) => {
if (AlfredModuleConnector.setBottomSheetView(id))
AlfredModuleConnector.setBottomSheetView(id!!);
};
export const clearBottomSheet = () => AlfredModuleConnector.clearBottomSheet();
export const clearBottomSheet = () => {
if (AlfredModuleConnector.clearBottomSheet())
AlfredModuleConnector.clearBottomSheet();
};
export const setCurrentScreenName = (screenName: string) => AlfredModuleConnector.setCurrentScreenName(screenName);
export const setCurrentScreenName = (screenName: string) => {
if (AlfredModuleConnector.setCurrentScreenName(screenName))
AlfredModuleConnector.setCurrentScreenName(screenName);
};