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-sectionlist-contact

v0.0.2

Published

react-native-sectionlist-contact is common sectionlist. it provide scrollToIndex with scrolling sidebar. and text will show you when you using scrollToIndex.

Downloads

3

Readme

react-native-textindicator-sectionlist-sidebar

Aug-24-2021 17-58-14

react-navtive-textIndicator-sectionList-sidebar is a simple sectionList With sidebar and textIndicator for iOS and Android.

you can scroll to touch sidebar index. it supports react version >= 0.60 and <= 0.59.

Document

Installation

execute the command to install react-native-textIndicator-sectionList-sidebar

npm install react-native-textIndicator-sectionList-sidebar

How to use

Import react-native-textindicator-sectionlist-sidebar

import SectionListSidebar from 'react-native-textindicator-sectionlist-sidebar';

Add the source code below to where you want to use it.

return (
      <SectionListSidebar
        ref={sectionListRef}
        data={sections}
        renderItem={renderContactList}
        itemHeight={30}
        sectionHeaderHeight={20}
        sectionHeaderStyle={styles.sectionHeader}
        locale="en"
      />
);

Properties

You can use All props of React Native Image for the original image(not full size modal image). Below are react-native-image-modal specific properties.

| Prop | required | Type | Description | | ------------------------------ | -------- | --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | rtl | X | boolean| it is for sidebar position. Default is false. If you don't want Sidebar to be on the right side of the sectionlist, set true. | | locale | X | "kor" | "en" | it is for sidebar item locale. Default is en. if you want place alphabet to sidebar item. set en or default | | sectionHeaderHeight | X | number | set the height of sectionlist. it is work for getItemLayout. if you put wrong height. it will Hundreds of items cause bugs such as slowing down and shaking the screen when scrolling. If you want to know more, see this post. default is 30 which is the same height as defaultSectionHeader. | | itemHeight | X | number | Section's item height. Default is 30. | | footerHeaderHeight | X | number | Section's footer HeaderHeight. Default is 0.| | separatorHeight | X | number | Section's list item separatorHeight. Default is 0.| | listHeaderHeight | X | number |SectionList top header height. Default is 0.| | renderSectionHeader | X | object | Returns section header component.| | data | O | object {key:string;title:string; data :Array}| Sections data.| | sectionHeaderStyle | X | object | Section's header style. | | renderSidebarItem | X | object |Returns sidebar's item component. | | sidebarContainerStyle | X | object |sidebar container style.| | sidebarItemStyle | X | object |sidebar's item style. | | sidebarItemTextStyle | X | object |sidebar's item text style. | | selectedText | X | object | it is print text when scrolling. if you want use custom renderSidebar with text indicator. you need put text. i will make some example. | | isSelectedShow | X | object | if it false. print text not show when scrolling. | | ref | O | object |sectionlist's ref. for working sidebar's scrollToIndex. if you not set ref. then not working scrollToIndex.|