react-native-unit-components
Version:
Unit React Native components
26 lines • 955 B
JavaScript
import { BottomSheetNativeComponentType, BottomSheetNativePlaceType, BottomSheetRenderingType } from '../../types/internal/bottomSheet.types';
import { BottomSheetNativeMessage } from '../../messages/nativeMessages/bottomSheetMessage';
import { eventBus } from '../../utils/eventBus';
export class UNCardFlows {
static startPushProvisioning = async (cardId, customerToken) => {
try {
const data = {
type: BottomSheetRenderingType.NativeComponent,
data: {
nativePlace: BottomSheetNativePlaceType.overFullScreen,
component: {
type: BottomSheetNativeComponentType.AddToWalletComponent,
props: {
cardId: cardId,
customerToken: customerToken
}
}
}
};
eventBus.emit(BottomSheetNativeMessage.REQUEST_RENDERING, data);
} catch (error) {
console.error(error);
}
};
}
//# sourceMappingURL=UNCardFlows.js.map