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

v0.4.1

Published

Easy to create multi-style tabs for React Native

Downloads

43

Readme

react-native-tabify

Easy to create multi-style tabs for React Native

Installation

$ npm install --save react-native-tabify

Usage

import Tabify from 'react-native-tabify'

const NewTabify = Tabify.create({ ... })

function Component() {
  return (
    <NewTabify.Tabs>
      <NewTabify.Tab name="tab1" title="Tab 1">
        <View style={{ backgroundColor: '#f00', flex: 1 }} />
      </NewTabify.Tab>
      <NewTabify.Tab name="tab2" title="Tab 2">
        <View style={{ backgroundColor: '#0f0', flex: 1 }} />
      </NewTabify.Tab>
      <NewTabify.Tab name="tab3" title="Tab 3">
        <View style={{ backgroundColor: '#00f', flex: 1 }} />
      </NewTabify.Tab>
    </NewTabify.Tabs>
  )
}

Properties

BarItem

| Prop | Description | Default | |---|---|---| |TouchableItem|A touchable component for bar item. |TouchableOpacity| |styles|A styles object or function which return styles object, styles object has containercontenttitlesubTitleactiveTitlebadgeWrapperbadgebadgeTxt keys. || |isNeedContainerLayout|Whether need barItem container layout. |computed| |isNeedContentLayout|Whether need barItem content layout. |computed| |isIgnoreLayoutChange|Whether ignore layout change. |computed|

BarIndicator

| Prop | Description | Default | |---|---|---| |styles|A styles object or function which return styles object, styles object has container keys. || |getWidth|A function that is called when get interpolate outputRange of indicator width. The function is called with a layouts argument. |layouts => layouts.map(d => d.container.width)| |getOffset|A function that is called when get interpolate outputRange of indicator offset. The function is called with layouts and widths arguments. |(layouts, widths) => layouts.map((d, i) => (d.container.x + (d.container.width - widths[i]) / 2))| |render|The indicator render function. |props => <Animated.View pointerEvents="none" {...props} />|

Bar

| Prop | Description | Default | |---|---|---| |BarItem|The bar item component. |Tabify.BarItem| |BarIndicator|The bar indicator component. |Tabify.BarIndicator| |styles|A styles object or function which return styles object, styles object has scrollercontainer keys. || |isScrollable|Whether bar scrollable. || |isShowIndicator|Whether show bar indicator. ||

Tab

| Prop | Description | Default | |---|---|---|

Scene

| Prop | Description | Default | |---|---|---|

Pager

| Prop | Description | Default | |---|---|---| |ViewPagerAndroid|The ViewPager for android. |ViewPagerAndroid| |styles|A styles object or function which return styles object, styles object has containercontentscene keys. ||

Tabs

| Prop | Description | Default | |---|---|---| |Bar|The bar component. |Tabify.Bar| |Pager|The pager component. |Tabify.Pager| |Scene|The scene component. |Tabify.Scene| |styles|A styles object or function which return styles object, styles object has container keys. ||

Container

| Prop | Description | Default | |---|---|---| |Tabs|The tabs component. |Tabify.Tabs| |Scene|The scene component. |Tabify.Scene|