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

v1.4.1

Published

Styling of list in context of better UI with less efforts

Downloads

83

Readme

React Native Stylishlist

Styling of list in context of better UI with less efforts - Increases re-usability.

Installation

npm install react-native-stylishlist

Usage

Import

import StylishList from 'react-native-stylishlist';

Fundamental Usage

<StylishList {...props}/>

Configuration - Props


const pressEventTrigger = (id : number, itemData: any) => {
  console.warn(id);
  console.warn(itemData);
}

const dataList = [
  {
    leftImageUrl: 'https://xyz.com/30017.png',
    leftImageBackgroundColor: '#00D8B1',
    itemTitle: 'General',
    itemDescription: 'Lorem ipsum dolor sit amet',
    // itemColorCircle: ['#EAEAEA', 'black', 'blue'],
    onPress: pressEventTrigger,
    rightSideText: '$25',
    rightSideTextColor: 'blue'
  },
  {
    leftImageUrl: 'https://xyz.com/30018.png',
    leftImageBackgroundColor: '#00D8B1',
    itemTitle: 'Privacy & security',
    itemDescription: 'Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet',
    // itemColorCircle: ['orange', 'cyan'],
    onPress: pressEventTrigger,
    checkBoxStatus: true,
    rightSideText: '$20',
    rightSideTextColor: 'blue'
  }
];

const props = { 
  heading: 'Settings',
  headingColor: 'black',
  headingSize: 14,
  leftImageUrlFlag: true,
  belowLine: false,
  itemBoxBorder: true,
  itemBoxBorderLeftHighlight: false,
  itemBoxBorderLeftHighlightColor: 'blue',
  rightArrowVisibility: true,
  rightSideTextFlag: true,
  rightSideIcon: 'https://xyz.com/30019.png',
  dataList: dataList,
};

Fundamentals

| Property/Method | Type | Default | Description | | ---------------- | :-----: | :-------: | ----------------------------------------------------------------------- | | leftImageUrlFlag | boolean | false | Parent flag to showcase left side image | | leftImageUrl | string | '' | Public url to showcase image in form of icon | | itemTitle | string | '' | Title of the item | | onPress | method | void | Attach any method with arguments itemSequence & data to recieve values |

Customization (Optionals)

| Property | Type | Default | Description | | ------------------------------------- | :--------: | :---------------------: | ------------------------------------------------------ | | heading | string | '' | set heading for the list | | headingColor | string | '' | set heading color, by default grey | | headingSize | number | 12 | set heading size | | belowLine | boolean | false | showcase horzontal line after every item in the list | | itemBoxBorder | boolean | false | showcase bordered box for every item in the list | | itemBoxBorderLeftHighlight | boolean | false | highlight left border of the box for styling | | itemBoxBorderLeftHighlightColor | string | '' | update any hexcode for color, by default black | | rightArrowVisibility | boolean | false | set flag to true to showcase right side image in item | | rightSideIcon | string | '' | asset path to showcase right side image | | rightSideTextFlag | boolean | false | parent flag to showcase text/amount right side | | leftImageBackgroundColor | string | '' | bg color for image circle, '' will make it transparent | | itemDescription | string | '' | Description for items | | itemColorCircle | string[] | [] | Add multiple colors for product variants | | rightSideText | string | '' | Add text right side, Ex: $25 | | rightSideTextColor | string | '' | Add hex color code for right side text color |

Future Plans

  • [ ] Will come up with checkbox list.
  • [ ] Will come up with search functionality.

Author

Suraj Motwani - Email: [email protected]

License

React Native Stylishlist is available under the MIT license. See the LICENSE file for more info.