UNPKG

@applicaster/zapp-react-native-utils

Version:

Applicaster Zapp React Native utilities package

24 lines (21 loc) 643 B
import { reactHooksLogger } from "../logger"; export const warnEmptyContentType = (item) => reactHooksLogger.warn({ message: "The feed or feed item selected is missing content type. For more info see link to docs below.", data: { item, docs: "https://docs.applicaster.com/using-zapp/app-building-walk-through#add-type-mapping", }, }); export const logOnPress = (item, currentRoute, component, onCellTap) => { reactHooksLogger.log({ message: "on cell tap", data: { item, customTapAction: onCellTap === "function" ? "true" : "false", component, currentRoute, }, }); };