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-toolbar-controls

v1.0.1

Published

react native toolbar with controls components support android and IOS, you can pass the props and dataset you need to get the view as you want it. It works on diffrent devices screens from 4 inch mobile screens to 10 inch screens, the example on landscape

Downloads

8

Readme

react-native-toolbar-controls

react native toolbar with controls components support android and IOS, you can pass the props and dataset you need to get the view as you want it. It works on diffrent devices screens from 4 inch mobile screens to 10 inch screens, the example on landscape screen

ScreenShots

screenshots1 screenshots2

Installation

npm install --save react-native-toolbar-controls

Components

Reference components used in react-native-toolbar-controls:

Usage

import ToolBarControl from 'react-native-toolbar-controls';

          <View>
                        <ToolBarControl segmentControlDataSet={options}
                                 centerControl={"SegmentControl"}
                                 selectedOption={"Start"}
                                 onPressSegmentControl={(option, index)=>{ console.log(option, index)}}
                                 leftControl={"Icon"}
                                 rightControl={"Switch"}
                                 leftIconName={"menu"}
                                 switchActiveText={"TS"}
                                 switchInActiveText={"TM"}
                                 onSwitchValueChange={(value)=>{console.log(value)}}
                                 onPressRightIcon={()=>{ console.log("onPressRightIcon")}}
                                 onPressLeftIcon={()=>{ console.log("onPressLeftIcon")}}
                                 rightIconName={'menu'}
                                 rightText={"RIGHT"}
                                 centerText={this.state.password}/>
          </View>

Toolbar Props

Left Control

| Prop name |Type | Description | | ------------- | ------------- | ------------- | | leftControl | string | keyname default is "Icon" ("Icon"/"Text") | | leftIconName | string | icon name default is "menu" | | leftIconColor | string | icon color default is "#fff" | | onPressLeftIcon | function | callback on press left Icon| | leftText | string | Text view default is "Left Text" | | leftControlTextContainerStyle | object styles| text container style | | leftControlTextStyle | object styles| text style |

Center Control

| Prop name |Type | Description | | ------------- | ------------- | ------------- | | centerControl | string | keyname default is "Icon" ("SegmentControl"/"Text") | | centerText | string | text view default is "Center Text" | | centerControlTextContainerStyle | object styles| text container style | | centerControlTextStyle | object styles| text style | | segmentControlDataSet | array | array of items like [ "Start", "Stop", "Recover"] | | segmentControlSelectedOption | string | default value 'Start'| | onPressSegmentControl | function | callback for (option, index) on segment control change | | segmentControlHeight | number | default value 6*viewPortMax, resizable | | segmentControlTabStyle | object styles | segmentControl container style| | segmentControlActiveTabStyle | object styles |segmentControl active container style| | segmentControlTabTextStyle | object styles | segmentControl text style | | segmentControlActiveTabTextStyle | object styles | segmentControl active text style | | segmentControlBorderRadius | number | default value 6.4 for border radius|

Right Control

| Prop name |Type | Description | | ------------- | ------------- | ------------- | | rightControl | string | keyname default is "Switch" ("Switch"/"Text"/"Icon") | | rightText | string | text view default is "Right Text" | | rightControlTextContainerStyle | object styles| text container style | | rightControlTextStyle | object styles| text style | | rightIconName | string | default icon name is "map" | | rightIconColor | string | default icon color is "purple" | | onPressRightIcon | function | callback on press left Icon | | switchActiveText | string | default icon name is "ON" | | switchInActiveText | string | default icon name is "OFF" | | onSwitchValueChange | function | callback on value change is boolean (True/False)| | toolbarHeight | string | height size set in percentage (%) of screen size and default value ('12.3%')|