
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
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
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.