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 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-simple-picker-sh

v1.0.9

Published

A simple react native picker library

Readme

react-native-simple-picker-sh

Highly customizable small sized picker library for react native

Getting started

$ npm install react-native-simple-picker-sh --save

E.g.:

import {Picker} from 'react-native-simple-picker'
export default class TestPicker extends Component{
	state={
		pickedItem:''
	}
	render(){
		return(
			<View>
				<Picker
					items={['foo','bar']}
					selectedValue={this.state.pickedItem}
					placeHolder="Select an item"
					onChange={(item)=>this.setState({pickedItem:item})}
					height={40}
					width={170}
					itemsHeight={40}
					itemsWidth={150}
				/>
			</View>
		)
	}
} 

##Props

A. onChange (required)

Callback when item is selected onChange={(text)=>onChangeText(text)}

B. items (required)

Array of items to be shown items=['foo','bar']

C. selectedValue

What should be shown after the item selection

1. backgroundColor

Background color for the picker view

default value : '#F5F5F5'

2. borderColor

Border color for the picker view

default value : '#E0E0E0'

3. borderWidth

Border width for the picker view

4. borderRadius

Border radius for the picker view

5. height

Height of the picker view

default value : 50

6. width

Width of the picker view

default value : 170

7. justifyContent

Justify content flex property for the selected or placeholder value and the dropdown icon

default value : 'space-between'

8. alignItems

Align items flex property for the selected or placeholder value and the dropdown icon

default value : 'center'

9. padding

Padding for the items inside the picker view

default value : 10

10. activeOpacity

Opacity for the onPress event of the picker view(range[0-1])

default value : 0.2

11. placeHolder

Placeholder to be shown in dropdown in case of no picked selected value or default selected value

default value : 'Select...'

12. placeHolderColor

Color of the placeholder or the selected item

default value : '#212121'

13. PlaceHolderFontSize

Font size of the placeholder or the selected item

default value : 20

14. iconColor

Color of the dropdown icon

default value : '#000'

15. backgroundVisibility

Transparency outside the picker popup(range[0-1])

default value : 0.8

16. offSetX

absolute X position of the picker popup

17. offSetY

absolute Y position of the picker popup

18. itemsHeight

Height of a single item inside picker popup

default value : 40

19. itemsWidth

Width of a single item inside picker popup

default value : 150

20. itemsBackgroundColor

BackgroundColor of the items inside the picker popup

default value : '#E0E0E0'

21. itemsDividerColor

default value : '#E0E0E0'

22. itemsDividerWidth

default value : 1

23. itemsTextColor

default value : '#000'

24. itemsFontSize

default value : 19