Rug
Textile component utility for communicating with the native layer (iOS / Android).
Install
Until we open-source:
yarn add @textile/rug
Log JS objects
Drop-in replacement for console.log
that will log to the native layer when present.
import * as rug from "textile-rug"
rug.log("hi")
rug.log(1234.56789)
rug.log({foo: "bar"})
// optionally provide a message
rug.log("howdy!", "Jimbo says") // -> "Jimbo says: howdy!"