UNPKG

rct-fh

Version:

React Native Feedhenry Wrapper (unofficial) ============= **React Native Wrapper around Feedhenry SDK** is built to provide a RN App access to both **iOS** and in the future also for **Android** to the Feedhenry SDK. You'll find all the information relat

26 lines (22 loc) 522 B
/** * @providesModule RCTFH for iOS * @flow */ 'use strict'; import { NativeModules } from 'react-native'; export const { FH } = NativeModules; var RCTFH = { init: async function() { return await FH.init(); }, getCloudUrl: async function() { return await FH.getCloudUrl(); }, auth: async function(authPolicy, username, password) { return await FH.auth(authPolicy, username, password); }, cloud: async function(options) { return await FH.cloud(options); } }; module.exports = RCTFH;