UNPKG

textiot

Version:

A framework for building web and native (IoT) Dapps on the IPFS network

15 lines (12 loc) 319 B
import { NativeModules } from 'react-native' const { LikesBridge } = NativeModules /** * Add a like to a shared block. * ```typescript * Textile.likes.add(blockId); * ``` */ export async function add(blockId: string): Promise<string> { const result = await LikesBridge.add(blockId) return result as string }