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.
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.
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.
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.