import * as Etebase from "etebase" ; import { Share } from "react-native" ; import { getItemData } from "./utils" ; export function canShare ( ) { return true ; } export async function shareItem ( item ) { const { name , content } = await getItemData ( item ) ; const message = `# ${ name }\n\n${ content }` ; await Share . share ( { message , title : name } ) ; }