react-native-app-data-sharing
Version:
This React Native package facilitates seamless and secure data sharing between applications on the same device.
59 lines (47 loc) • 1.37 kB
JavaScript
;
// Modified from react-native-keychain (https://github.com/oblador/react-native-keychain)
/**
* Interface for shared data options
* @property {boolean} dataSync
* - whether to sync data to other apps
* - default: true
*/
/**
* Interface for initial provider
* @property {Array<string>} appsBundleIds
* - array of other apps bundle ids
*/
export let ErrorCode = /*#__PURE__*/function (ErrorCode) {
ErrorCode["VALUE_ERROR"] = "VALUE_ERROR";
ErrorCode["KEY_ERROR"] = "KEY_ERROR";
ErrorCode["CLEAR_ERROR"] = "CLEAR_ERROR";
ErrorCode["NO_DATA_FOUND_ERROR"] = "NO_DATA_FOUND_ERROR";
ErrorCode["ACTION_ERROR"] = "ACTION_ERROR";
ErrorCode["SAVE_ERROR"] = "SAVE_ERROR";
ErrorCode["UPDATE_ERROR"] = "UPDATE_ERROR";
ErrorCode["DELETE_ERROR"] = "DELETE_ERROR";
ErrorCode["UNEXPECTED_ERROR"] = "UNEXPECTED_ERROR";
return ErrorCode;
}({});
// Define the error type
/**
*
* * * * * IOS Options for keychain functions. * * * *
*
*/
/**
* Options for authentication prompt displayed to the user.
*/
/** Base options for keychain functions. */
/** Base options for keychain functions. */
/**
* Result returned by keychain functions.
*/
/**
* User credentials returned by keychain functions.
*/
/**
* Shared web credentials returned by keychain functions.
* @platform iOS
*/
//# sourceMappingURL=DataSharingTypes.js.map