@banuba/react-native
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.EffectPlayerView = exports.BanubaSdkManager = void 0; | ||
exports.default = exports.EffectPlayerView = void 0; | ||
var _reactNative = require("react-native"); | ||
@@ -23,3 +23,4 @@ const LINKING_ERROR = `The package 'banuba-sdk-react-native' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({ | ||
}); | ||
exports.BanubaSdkManager = BanubaSdkManager; | ||
var _default = BanubaSdkManager; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
@@ -10,3 +10,3 @@ import { requireNativeComponent, UIManager, Platform, NativeModules } from 'react-native'; | ||
}; | ||
export const BanubaSdkManager = NativeModules.BanubaSdkManager ? NativeModules.BanubaSdkManager : new Proxy({}, { | ||
const BanubaSdkManager = NativeModules.BanubaSdkManager ? NativeModules.BanubaSdkManager : new Proxy({}, { | ||
get() { | ||
@@ -16,2 +16,3 @@ throw new Error(LINKING_ERROR); | ||
}); | ||
export default BanubaSdkManager; | ||
//# sourceMappingURL=index.js.map |
import { ViewStyle } from 'react-native'; | ||
interface BanubaSdkManagerI { | ||
/** | ||
* SDK initialization. | ||
* @param resourcePaths extra path to find effects | ||
* @param clientToken | ||
*/ | ||
initialize(resourcePaths: string[], clientToken: string): void; | ||
deinitialize(): void; | ||
attachView(tag: number): void; | ||
openCamera(): void; | ||
closeCamera(): void; | ||
startPlayer(): void; | ||
stopPlayer(): void; | ||
loadEffect(path: string): void; | ||
/** | ||
* Evaluate JS code in context of the current effect. | ||
* @param script code to evalute | ||
*/ | ||
evalJs(script: string): void; | ||
} | ||
type EffectPlayerViewProps = { | ||
@@ -7,4 +27,4 @@ style: ViewStyle; | ||
export declare const EffectPlayerView: import("react-native").HostComponent<EffectPlayerViewProps> | (() => never); | ||
export declare const BanubaSdkManager: any; | ||
export {}; | ||
declare const _default: BanubaSdkManagerI; | ||
export default _default; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@banuba/react-native", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "Banuba SDK for React Native", | ||
@@ -5,0 +5,0 @@ "main": "lib/commonjs/index", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34525
119