
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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 5 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.