@s20.ai/safecam-360-rn
Version:
A React Native component to view the interior panorama and exterior 360 degree views of a product featuring suppport for hotspots. Compatible with Android and iOS
34 lines (29 loc) • 679 B
JavaScript
/*
* Copyright © 2022 S20.AI India Pvt. Ltd.
* Contact - origin@s20.ai
* License - Licensed as per https://docs.s20.ai/license.html
*/
import types from './types';
export const setCurrentHotspot = (data) => {
return {
type: types.HOTSPOT.SET_CURRENT_HOTSPOT,
data,
};
};
export const clearCurrentHotspot = () => {
return {
type: types.HOTSPOT.CLEAR_CURRENT_HOTSPOT,
};
};
export const setHotspotMode = (data) => {
return {
type: types.HOTSPOT.SET_HOTSPOT_MODE,
data,
};
}
export const setHotspotDetailMode = (data) => {
return {
type: types.HOTSPOT.SET_DETAIL_MODE,
data,
};
};