npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-chat-component-simplify360assignment

v2.0.3

Published

This is an assignment by RahulSaini for chat component by simplify360 company. Time Taken to build: 3-4 hours

Downloads

174

Readme

ChatAssignmentsimplify360

This is an assignment by RahulSaini for chat component by simplify360 company. Time Taken to build: 3-4 hours

To run the component just install it from the NPM package or clone the repo.

This is a very simple implementation of chat component where the list of chats are shown where user can go to specific chat.

Features implmented:

Used a custom color picker when tapping on Header Title the color picker will show, it is used to set background of the header.

Also implemented functionality to scroll to latest message in case of screen is full. Used a flatlist implementation.

how to install: npm i react-native-chat-component-simplify360assignment

requires node v16.20.2+ -> check your node version using nvm ls

Make sure the dependencies of package and your application is for React Native and React are same.

**import Chat component from the library **

import Chat from 'react-native-chat-component-simplify360assignment'

Chat component takes these props, if not passed will have default values set to them.

showchat => CALLBACK FUNCTION (pass this callback function from where CHAT is used, to make the CROSS/BACK functionality work of Chat) for example below code


const [chat, showChat] = useState(true); const showchat = () => { showChat(false); }; return ( <View style={{flex: 1}}> {!chat ? ( <Button title="Open Chat" onPress={() => showChat(true)} /> ) : ( <></> )} {chat ? <Chat headerTitle={'New Header'} showchat={showchat} /> : <></>} )


headerTitle='Header' => STRING VALUE (used to give custom headertitle) titleColor='black' => STRING VALUE (used to give custom color to title) headerColor='blue' => STRING VALUE (used to give custom color to header Background color) chatBackground='lightblue' => STRING VALUE (used to give custom color to chat's View color) messageBackground='#2875d4' => STRING VALUE (used to give custom color to message popups color)

Styling Current version includes mostly inline styles, but will later have stylesheets imported and used