
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
azstack-react-native
Advanced tools
npm install --save azstack-react-native
import AZStackSdk from 'azstack-react-native/sdk/';
componentDidMount() {
this.refs.AZStackSdk.connect().then((result) => {
this.setState({ authenticatedUser: result });
}).catch((error) => {});
};
render() {
...
let azstackConfig = {
requestTimeout: 60000,
intervalPingTime: 60000,
autoReconnect: true,
autoReconnectLimitTries: 10,
autoReconnectIntervalTime: 5000,
logLevel: 'ERROR',
authenticatingData: {
appId: '',
publicKey: '',
azStackUserId: '',
userCredentials: '',
fullname: '',
namespace: ''
}
};
let defaultLayout = {
withStatusbar: true,
withHeader: true,
screenStyle: {},
statusbarStyle: {}
};
let languageCode = 'en';
let themeName = 'classic';
let getInitialMembers = (options) => {
return new Promise((resolve, reject) => {
resolve(['test_user_1', 'test_user_2', 'test_user_3'].filter((member) => {
return member.indexOf(options.searchText) > -1;
}));
});
};
let getMoreMembers = (options) => {
return new Promise((resolve, reject) => {
resolve(false);
});
};
let getFromPhoneNumbers = (options) => {
return new Promise((resolve, reject) => {
resolve([]);
});
};
let getPaidCallTags = (options) => {
return new Promise((resolve, reject) => {
resolve('');
});
};
let onBeforeMessageSend = (message) => {
return new Promise((resolve, reject) => {
resolve(message);
});
};
let onBeforeCalloutStart = (calloutData) => {
return new Promise((resolve, reject) => {
resolve(calloutData);
});
};
...
return (
<AZStackSdk
ref={'AZStackSdk'}
options={{
azstackConfig: azstackConfig,
defaultLayout: defaultLayout,
languageCode: languageCode,
getInitialMembers: getInitialMembers,
getMoreMembers: getMoreMembers,
getFromPhoneNumbers: getFromPhoneNumbers,
getPaidCallTags: getPaidCallTags,
onBeforeMessageSend: onBeforeMessageSend,
onBeforeCalloutStart: onBeforeCalloutStart
}}
>
)
...
}
List conversations
this.refs.AZStackSdk.showConversations(screenOptions)
How to start chat
this.refs.AZStackSdk.startChat({
chatType: '', // 1: CHAT_TYPE_USER, 2: CHAT_TYPE_GROUP
chatId: 0,
// other screenOptions
});
Show number pad for callout
this.refs.AZStackSdk.showNumberPad(screenOptions)
How to start callout
this.refs.AZStackSdk.startCallout({
callData: {
fullname: 'Some name',
toPhoneNumber: '0123456789',
fromPhoneNumber: '0123456789',
},
onEndCall: () => {
// or whatever you want here
},
// other screenOptions
});
How to start video call
this.refs.AZStackSdk.startVideoCall({
callData: {
fullname: 'User 2',
toUserId: 387212, // must be number
},
onEndCall: () => {
// or whatever you want here
},
// other screenOptions
});
How to start audio call
this.refs.AZStackSdk.startAudioCall({
callData: {
fullname: 'User 2',
toUserId: 387212, // must be number
},
onEndCall: () => {
// or whatever you want here
},
// other screenOptions
});
Show call logs
this.refs.AZStackSdk.showCallLogs(screenOptions)
Show user info
this.refs.AZStackSdk.showUser(screenOptions)
Show group info
this.refs.AZStackSdk.showGroup(screenOptions)
{
onBackButtonPressed: () => {},
screenStyle: {},
statusbarStyle: {},
withStatusbar: true | false, // true by default, overwrite defaultLayout
withHeader: true | false, // true by default, overwrite defaultLayout
}
Visit https://github.com/azstack/azstack-react-native/blob/master/docs/Usage.md
FAQs
React native SDK for AZSTACK Communication Platform
The npm package azstack-react-native receives a total of 93 weekly downloads. As such, azstack-react-native popularity was classified as not popular.
We found that azstack-react-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.