MCPcopy Create free account
hub / github.com/dailydotdev/apps / shouldUseNativeShare

Function shouldUseNativeShare

packages/shared/src/lib/func.ts:257–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

255 globalThis?.localStorage.mobile || globalThis?.navigator.maxTouchPoints > 1;
256
257export const shouldUseNativeShare = (): boolean =>
258 'share' in globalThis?.navigator && isMobile();
259
260export const shouldUseSocialAuthPopup = (): boolean => {
261 if (isIOSNative()) {

Callers 2

useShareCommentFunction · 0.90
onShareOrCopyFunction · 0.90

Calls 1

isMobileFunction · 0.85

Tested by

no test coverage detected