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
27 lines (22 loc) • 566 B
JavaScript
/**
* @providesModule RCTFH for Android
* @flow
*/
;
import { NativeModules } from 'react-native';
export const { FH } = NativeModules;
var RCTFH = {
init: async function() {
return await FH.init();
},
getCloudUrl: async function() {
console.warn('Function getCloudUrl not yet implemented for Android');
},
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;