eueno library react native
install
npm install @eueno/react-native
example
const Eueno = require('@eueno/react-native');
const fs = require('fs');
async function example() {
const eueno = new Eueno({
endpoint: 'domain_eueno',
});
const file = await fs.readFileSync('1.png');
const data = await eueno.upload(
file,
{
key: {
walletPublicKey: 'walletPublicKey',
k: 'keyAes',
},
signData: {
signature: 'signature',
expireAt: timestamp
},
},
{
projectId: 129,
filename: '1.png',
contentLength: 12313,
contentType: 'image/png',
method: 'ENCRYPT',
keepPath: false,
},
);
console.log('data', data);
}
example();