Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A full fledged Chat package that comes with prebuilt backend integration and server hosting. So that you don't have to worry about anything. Just install the package and start using it.
A full fledged Chat package that comes with prebuilt backend integration and server hosting. So that you don't have to worry about anything. Just install the package and start using it.
You can see the example app for full reference here
import { GeekChat, getToken, setToken, createUser } from 'geek-chat';
export default class App extends React.Component {
callMe = () => {
// Your custom logic here
};
render() {
return (
<View style={styles.container}>
<GeekChat userData={props.userData} onBackPress={callMe} />
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
createUser
(func) - function that creates a new user [ Can be used to create a custom login Component]
const userData = {
token: "your app token",
uniqueKey: 'users uniquekey',
displayName: 'name to be displayed in the app'
};
const userDetails = await createUser(userData);
setToken
(func) - function to set the app Token. [just pass the token as a string in parameters.]getToken
(func) - function that returns the app token.You can call these functions anywhere in your app. Ideally when your app starts/boots up.
setToken('Your App Token');
const appToken = getToken();
console.log(appToken);
userData
(bool) - The user data as an object which you get from the createUser function.
Requires: uniqueKey
, displayName
and _id
.onBackPress
(func) - call your custom function when your need to exit from the chatApp.We have used react-native-gifted-chat
for UI. Check it out here
FAQs
A full fledged Chat package that comes with prebuilt backend integration and server hosting. So that you don't have to worry about anything. Just install the package and start using it.
The npm package geek-chat receives a total of 2 weekly downloads. As such, geek-chat popularity was classified as not popular.
We found that geek-chat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.