Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@atlasinc/react-native-sdk
Advanced tools
Atlas customer support chat widget
This module requires react-native-webview to be installed:
npm install @atlasinc/react-native-sdk react-native-webview
import React, { useState, useEffect, useContext } from 'react';
import { createAtlasSupportSDK } from '@atlasinc/react-native-sdk';
// For demo purpose, assume that user credentials are stored in the React context
import UserContext from './user-context';
// The APP_ID can be found on Atlas Company Settings page: https://app.atlas.so/settings/company
const {
// Authentication method
identify,
// Realtime updates on conversations status
watchAtlasSupportStats,
// Manually set custom ticket fields
updateAtlasCustomFields,
// Chat widget
AtlasSupportWidget
} = createAtlasSupportSDK({
// Application ID can be found at https://app.atlas.so/settings/company
appId: 'APP_ID',
// Optional user data that can be set later via identify() function
userId: '',
userHash: '',
userName: '',
userEmail: '',
// Optional error callback
onError: (error) => console.error(error)
});
function Component() {
// User identification
const user = useContext(UserContext);
useEffect(() => {
// Read more about Atlas authentication: https://help.atlas.so/articles/620722-user-authentication
identify({
userId: user.id,
userHash: user.atlasHash,
userName: user.fullName,
userEmail: user.email
});
}, [user]);
// Unread messages counter
const [unread, setUnread] = useState(0);
useEffect(() => {
const unsubscribe = watchAtlasSupportStats(({ conversations }) => {
// Counting amount of unread messages from each conversation
const unreadTotal = conversations.reduce((total, c) => total + c.unread, 0);
setUnread(unreadTotal);
});
return unsubscribe;
}, []);
// Using chat widget
return (
<View>
<AtlasSupportWidget
style={{ flex: 1 }}
onNewTicket={(data) => updateAtlasCustomFields(data.ticketId, { customTicketField: 'value' })}
/>
</View>
);
}
MIT
Made with create-react-native-library
FAQs
test
We found that @atlasinc/react-native-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.